div内的Anchor标签在div外显示,以最小化浏览器

时间:2019-06-05 06:02:58

标签: html css tags anchor

当我最小化浏览器时,锚标记中的文本会超出div。

<ul style="font-size:18px;">
  <li >Goto you <a href="https://www.youstable.com/hosting/web-hosting" >https://www.youstable.com/hosting/web-hosting</a> and select the hosting plan you would like to go with.</li>
<li style="list-style-type:none">
<center><img src="images/hosting.png" class="img-responsive" alt="Paid Hosting"></center>
</li>
</ul>

1 个答案:

答案 0 :(得分:0)

添加了属性断字

<ul style="font-size:18px;">
  <li >Goto you <a style="word-break: break-all;" href="https://www.youstable.com/hosting/web-hosting" >https://www.youstable.com/hosting/web-hosting</a> and select the hosting plan you would like to go with.</li>
<li style="list-style-type:none">
<center><img src="images/hosting.png" class="img-responsive" alt="Paid Hosting"></center>
</li>
</ul>
相关问题