一个 table 元素在 firefox 中正常,在 chrome 下长度溢出

2014 年 2 月 16 日
 o618
修改了半天还是不行,请问怎么兼容?
2931 次点击
所在节点    问与答
7 条回复
wctbok
2014 年 2 月 16 日
table-layout: fixed
试试看
o618
2014 年 2 月 16 日
@wctbok 还是不行,代码如下:

<table class="ui-content">
{% for topic in hot_topics %}
<tr class="topic-item">
<td><a href="/u/{{ topic.author_username }}">
<img style="max-width: 24px;max-height: 24px;" src="/static/avatar/s_{{ topic.author_avatar or 'default.png' }}" alt="" class="avatar" />
</a></td>
<td class="title">
<a href="/t/{{ topic.id }}#reply{{ topic.reply_count or 0 }}">{{ topic.title }}</a>
</td>
</tr>
{% endfor %}
</table>
o618
2014 年 2 月 16 日
发现英文字符等才会溢出,中文不会
loading
2014 年 2 月 16 日
检查下字体,看下浏览器的最小字体
o618
2014 年 2 月 16 日
@loading css最小字体:font-size: 12px,这和字体有啥关系?
learnshare
2014 年 2 月 16 日
我可能遇到过这个问题,解决方法:包含文字的元素 display 不要是 block
slowman
2014 年 2 月 16 日
虽然不知道有没有关系。。不过你用没用 mactype ?用了的话试试关掉对 chrome 的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/100474

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX