我四处搜索但找不到解决方案。我不明白为什么 chrome 和 IE 磁盘 ul 会换行文本并且不对齐。链接是:http://web42.login-33.hoststar.ch/vivasicilia/index.php?option=com_k2&view=item&id=251:alia&Itemid=727
感谢您的解决方案!!!
最佳答案
删除 float: left
来自 div.k2ItemsRelatedListVertisagrepal a {}
并添加
div.k2ItemsRelatedListVertisagrepal a {
line-height: 1;
}
div.k2ItemsRelatedListVertisagrepal li h7 {
line-height: 12px;
}
- 你不需要 float
<a>
.他的 parent 已经漂浮了
更新: 添加
div.k2ItemsRelatedListVertisagrepal a {
line-height: 1 !important;
display: inline-block !important;
width: 140px !important;
}
这是一个非常丑陋的修复 :(
关于css - 带有 chrome 和 IE 的 Html-List css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20017408/