【问题标题】:Anchor tag inside the div is showing outside the div on minimizing the browserdiv 内的锚标记显示在 div 外部以最小化浏览器
【发布时间】:2019-06-05 06:02:58
【问题描述】:

当我最小化浏览器时,锚标记中的文本会出现在 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>

【问题讨论】:

  • 在 css 中使用填充和溢出属性/属性
  • 在锚标签上使用css,我试过了,但它不起作用。查看我分享的图片。

标签: html css tags anchor


【解决方案1】:

添加属性分词

<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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-25
    • 2021-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-08
    • 1970-01-01
    相关资源
    最近更新 更多