![](/img/trans.png)
[英]How to make a div with position:fixed occupy the entire parent width (and resize with it)?
[英]Make content occupy entire width of screen
找到了答案:只需将溢出:自动放入容器类中,然后直接浮动到内容类中。 就像是:
<div class="container">
<div class="content">
</div>
</div>
.content {
float: right
}
.container {
overflow: auto
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.