css - 带有 chrome 和 IE 的 Html-List css

标签 css internet-explorer google-chrome html-lists

我四处搜索但找不到解决方案。我不明白为什么 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/

相关文章:

javascript - 如何在 vbscript 或 javascript 中关闭 Internet Explorer 的当前选项卡

css - 如何在IE8中创建一个1px高度的div

javascript - 鼠标点击触发鼠标离开

javascript - 将 JavaScript 返回到 HTML 属性中

css - @font-face 只能在本地工作

javascript - 模拟 IE 9 javascript 中的点击

javascript - 在单页应用程序中调试 javascript

css - Chrome 中 RGBA 背景的无效属性值

html - 更改 <img> 标签保存图像的位置

jquery - ASP.NET MVC 中的链接样式失败问题