在第 69 行左右重置后,我有以下内容
a, a:visited {
text-decoration: none;
font-size: 1.3em;
color: #333;
font-family: "museo";
border-bottom: #444 solid 1px;
}
然后在第 303 行我有:
.leaderboard_ad {
background: #fff;
margin: 10px 36px;
position: relative;
width: 728px;
height: 70px;
padding: 5px;
border-radius: 3px;
border-bottom: #e4e4e4 solid 3px;
text-align: center;
}
.ad_title {
display: block;
border: 0;
color: blue;
font-size: 1.4em;
}
.ad_subhead {
color: green;
border: 0;
text-decoration: underline;
}
这是一个开发文件,这就是为什么我有广告,它是 adsense 的占位符。
现在,在大多数页面上,它都能提供我想要的样式。但是在一页上,排行榜广告占位符被一般 anchor 样式覆盖,我不明白为什么。复制并粘贴了 HTML,因此它 100% 相同。除了一页之外,它在任何地方都显示为正确的方式...我已经清除了我的缓存并且它一直在继续。这似乎违背了所有逻辑。有什么想法吗?
HTML 代码:
<div class="leaderboard_ad">
<a href="#" class="ad_title">Ad Title</a>
<a href="#" class="ad_subhead">www.google.com/adsense</a>
<p>This is an example of a leaderboard AdSense text ad.</p>
</div>
最佳答案
将您的选择器切换到 a.ad_title
和 a.ad_subhead
?
关于html - General Anchor css 覆盖类...但仅在一页上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19061433/