不知道为什么头图像不正确调整。见http://www.insidemarketblog.com响应调整图片大小问题
我以为我把它正确的,但标题图片不会调整针对移动设备。有什么建议么?
CSS:
#thesis_header_image {
height: auto;
max-width: 100%;
}
.container_header_image {
width: 400px;
}
HTML:从HTML
<div id="wrap">
<div class="container_header_image">
<div class="text_box">
<a href="http://www.insidemarketblog.com">
<img id="thesis_header_image" width="400" height="87" src="http://www.insidemarketblog.com/wp-content/uploads/2014/03/logo_header1.png" alt="Inside Market Strategy header image" title="click to return home">
</a>
</div>
</div>
不错的解决方案,虽然我会选择400或更高的值。大多数移动设备都具有该分辨率,并且标题图像为400像素,因此,只要窗口小于此大小,就可以调整其大小。 – GolezTrol
@GolezTrol是正确的,我已经更新我的答案。 –
就像一个魅力!!!!!!谢谢。 – user3117275