我有一个div 类.shelter
,我正在尝试瞄准它。但是specificity
和important
不起作用。
最初,当我尝试时它起作用了。
.shelter{text-align: center; font-size :20px; font-weight:
bold}
这适用于针对div,但只要我添加:
`color: #e6d40e !important;`
它不再起作用了。
所以我尝试了特异性:
.entry-content>.blog>.shelter{text-align: center; font-size
:20px; font-weight: bold; color: #e6d40e !important;}
没用。
目录:
<div class="entry-content">
<div class="unfortunately">This is, unfortunately, the
Adsler blog.<link
href="https://fonts.googleapis.com/css?
family=Anton&display=swap" rel="stylesheet">.
</div>
<p></p><div class="blog"><embed style="width: 100%;
height: 500px;" src="https://www.kw-berlin.de/"
width="300" height="150"></embed></p><div
class="shelter"><a href
="https://www.shelter.org.uk/">Making sure no one has
to fight bad housing or homelessness on their own</a>.
</div>
<p></br></p>
页面在这里
试试这个
.shelter a{ color: #e6d40e; }