我正在尝试将一些 CSS 添加到 Wordpress 网站徽标中,这让我抓狂。这是html:
<div id="main-container">
<header id="top-header" >
<div id="logo">
<a href="http://somesite.com/"><img src="http://somesite.com/wp-content/uploads/2013/06/cropped-cropped-logo2251.jpg" width="175" height="194" alt="somesite Wood logo"/></a>
</div><!-- end of #logo -->
<div id="main-navigation">
<div class="social-icons">
<ul>
</ul>
</div>
以下是我尝试过但不起作用的 CSS 变体:
#logo a img {
opacity: 0.85;
}
#logo a {
opacity: 0.85;
}
#top-header #logo a img {
opacity: 0.85;
}
#logo img {
opacity: 0.85;
}
该网站的链接在这里:www.patchwood.ca