为什么IE7不能识别我的锚点标签上的CSS填充样式? [英] Why Doesn't IE7 recognize my css padding styles on anchor tags?

查看:121
本文介绍了为什么IE7不能识别我的锚点标签上的CSS填充样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站在Firefox,Safari,Chrome和Opera中正常工作,但由于某种原因IE7无法识别任何锚标记的css填充。我不能想出这一点。在IE7中,如果您查看主页上显示exclusives | popular | recent comments的标签 http://revolvermag.com ,你会看到没有应用填充。

My site is working fine in Firefox, Safari, Chrome, and Opera, but for some reason IE7 is not recognizing css padding on any anchor tags. I can't figure this out. In IE7, if you look at the tabs that say "exclusives|popular|recent comments" on the homepage http://revolvermag.com, you'll see that there is no padding getting applied.

我已经解决了填充不适用于网站上其他地方的锚点标签,但在这里看起来特别糟糕。任何人都知道CSS修复这个?

I've worked around the padding not getting applied to anchor tags elsewhere on the site, but here it looks especially bad. Anyone know of CSS fixes for this?

推荐答案

a {display:inline-block} 可能工作,同时保持内联级别意味着它不打破页面。不能试试,我没有IE7。在IE8 inline 它工作正常。

a { display: inline-block } might work while keeping the inline-level meaning it doesn't break the page. Can't try though, I don't have IE7. In IE8 inline it works fine.

这篇关于为什么IE7不能识别我的锚点标签上的CSS填充样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆