表格单元格换行(有时)
有一个表格,其中一行中的最后一个单元格有时会换行,但在其他情况下会正确显示。在我的一生中,看不出它包裹和不包裹的情况有什么区别。
包装
http://bookgroupaustralia.obiweb.com.au/Book/guitar-chords
不换行
Have a got a table where the last cell in a row sometimes wraps but in other occasions displays correctly. Can't for the life of me see any difference between cases where it wraps and when it doesn't.
wrapping
http://bookgroupaustralia.obiweb.com.au/Book/guitar-chords
not wrapping
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您似乎在
td
元素上设置float: left;
,这显然改变了它们的显示类型并允许它们在某些情况下换行。这是有原因的吗?您可以尝试从/site/css/style.css
(第 474 行)中删除它You appear to be setting
float: left;
on thetd
elements, which is apparently changing their display type and allowing them to wrap in some cases. Is there a reason for that? You may simply try removing it, from/site/css/style.css
(line 474)更改 td.productItem margin-right: 10px;至 5 像素;
Change
td.productItem
margin-right: 10px; to 5px;