【发布时间】:2014-08-14 12:19:42
【问题描述】:
I have a website here 为朋友和我的生活我不知道如何将徽标调整为宽度为 300 像素。我可以调整 .site-title 的大小就好了,但这不会调整徽标的大小,而且我没有 img 标签可以工作,因为它已被设置为 wordpress 的标题图像。
一旦屏幕尺寸达到 400 像素,我无法找到正确的 css 语句来获取该徽标以调整其大小。
HTML
<div class="wrap">
<div class="title-area">
<p itemprop="headline" class="site-title">
<a title="Insideout Fitness" href="http://ambergoodwindraft.com/insideoutfitnessdraft/">Insideout Fitness</a>
</p>
</div>
</div>
CSS -- 很难显示 css,因为有些是我的,有些是来自 wordpress 主题的。
.header-image .site-title a {
height: 130px;
margin: 1em 0;
max-width: 417px;
}
我认为用这种方法会起作用,但它没有
@media only screen and (max-width: 320px) {
.header-image .site-header .title-area .site-title a {
background-size: contain !important;
}
}
感谢任何帮助。
【问题讨论】: