gpt4 book ai didi

css - Wordpress 博客页面 a :visited and category tags invisible 'white'

转载 作者:行者123 更新时间:2023-11-28 11:04:32 25 4
gpt4 key购买 nike

我从头开始构建了一个 wordpress 主题,但是在选择时将引导导航设置为白色文本和棕色文本 - 这似乎覆盖了 a: visit 和 a: hover on everything I've tried to add a separate new博客文章页面上的 H1 标签类,但我用过它似乎不起作用。

.h1blog{
font-size: 22px;
font-family:"Lato", arial, helvetica, sans serif;
color:#674922;
line-height:120%;
}

a.h1blog:link{ color: #674922; text-decoration: none; }

a.h1blog:visited{ color: #666666; text-decoration: none; }

任何帮助将不胜感激我什至尝试了一些针对 wordpress 中预设类的类样式,但这也不起作用吗?

http://creative-media.info/WarringtonBonsai/latest-news-offers/

干杯

保罗

最佳答案

问题是:

<h1 class="h1blog"><a href="http://creative-media.info/WarringtonBonsai/test-3/">TEST 3</a></h1>

你有一个 <h1>元素与 h1blog类,包含 <a>您尝试使用此规则设置样式的元素:

a.h1blog:link{ color: #674922; text-decoration: none; }

那行不通,因为 <a>元素没有 h1blog应用于它的类。试试这个:

.h1blog a:link{ color: #674922; text-decoration: none; }

关于css - Wordpress 博客页面 a :visited and category tags invisible 'white' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22311585/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com