[英]when screen size is medium or small or xs, the text overflows that it messes up the whole table. It works fine in full screen though
對於台式機版本,(當生活變得更簡單時)普通頁面文本可以很好地顯示。 但是對於平板電腦和移動版,文本會溢出。 我已經在用
h4#lineForUrl a:first-of-type {
max-width:500px
display:inline-block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
但這只會在桌面大小頁面上生效。 對於我的網絡用戶而言,任何內容都可以發布,並且帖子標題也會顯示在首頁上。 當標題太長時,我使用了上面的代碼來阻止溢出。 但是當我減小屏幕尺寸時,防止溢出的標題仍然太長了。 我如何在這里實現目標?
<h4 id="lineForUrl">
<a href="{% url 'post' post.slug %}"
target="_blank"
style="margin-left: 15px; text-decoration:none;">
<img src="{{post.thumbnail}}"
class="img-rounded"
alt="☺"
height="75"
width="75"/>
<span id="title-font">
{{ post.title }}
</span>
</a>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.