【发布时间】:2017-02-13 10:32:57
【问题描述】:
这是我的fiddle,页眉、容器、页脚需要在没有滚动条的情况下适应任何分辨率,或者有什么方法可以在不使用固定位置的情况下做到这一点
img {
width: 100%;
}
.content {
background: yellow;
}
footer {
height: 40px;
background: #000;
width: 100%;
color: #fff;
position: fixed;
bottom: 0px;
}
<header class="header">
<img src="http://www.emedicalpoint.com/images/nav/sprite.jpg" alt="">
</header>
<div class="content">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
</div>
<footer>
footer content comes here
</footer>
【问题讨论】:
标签: jquery html css responsive-design