html - General Anchor css 覆盖类...但仅在一页上

标签 html css

在第 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_titlea.ad_subhead ?

关于html - General Anchor css 覆盖类...但仅在一页上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19061433/

相关文章:

html - CSS:如何在固定宽度、居中的 div 的背景中显示图像?

javascript - CSS:除正方形外的模糊背景

html - CSS:由于某种原因,单元格边框不是圆形的

javascript - Jquery显示更多的div和显示更少的div

javascript - 以正确的方式使用 z-index

html - 下拉导航列表

android - 具有捕获和接受属性的 HTML 文件输入控件工作错误?

javascript - 使用 ajax 填写已选择的参数的表单

html - 像我的图片一样的 Flex Grid

css - Node sass watch 直接构建更改的文件而不是入口点文件