css - IE7 调试问题 - <li> 中的单词中断

标签 css debugging cross-browser internet-explorer-7

我在 IE7 中遇到了一个我似乎无法修复的非常基本的问题。如果您查看此页面:http://vitaminjdesign.com/IAM/company/您会注意到垂直导航 (ul id="leftcol") 在 IE7 中显示不正确。每个单词出现在它自己的行中。这是我的 HTML/。 CSS:

<ul id="leftcol">
    <li><a class="active" href="#">Company Overview</a></li>
    <li><a href="#">Why Choose Parker?</a></li>
    <li><a href="#">Testimonials</a></li>
    <li><a href="#">Financing Promotions</a></li>
    <li><a href="#">Licensing & Credentials</a></li>
</ul>

ul#leftcol{float:left; width:185px; position:relative; z-index:10;}
ul#leftcol li{float:right; clear:right; margin-bottom:14px; list-style:none; list-style-image:none; text-align:right; line-height:1.3; }
ul#leftcol li a{color:#505050; text-decoration:none; font-size:15px; float:right;}
ul#leftcol li a.active,ul#leftcol li a:hover{color:#89b060;}

有什么想法吗?

最佳答案

从以下内容中删除 clear:right;

ul#leftcol li{float:right;margin-bottom:14px; list-style:none; list-style-image:none; text-align:right; line-height:1.3; }

关于css - IE7 调试问题 - <li> 中的单词中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4514347/

相关文章:

html - 为什么 margin-top 对于 chrome 和 safari 不同?

css - IE浏览器模式不同于文档模式

css - 让 minify(css/js 压缩)在专用服务器上工作

javascript - Angular : Using a sprite sheet with ng-repeat

css - 背景: transparent url(); do?是什么

javascript - 在我的网站上,我的一些内容被标题覆盖了。无论如何我可以解决这个问题吗

python - 如何调试作为 vim 插件一部分的 python 函数?

java - 调试 eclipse/jdt jar 文件中的类方法

c++ - 将源代码与反汇编代码匹配

javascript - 图像在 safari 和 chrome 中缩放,但在 ff 和 opera 中不缩放