div(page-wrap)是页面容器,宽度为960px,位置居中于页面中间。我想要一个忽略它并具有页面宽度的子 div。
.page-wrap {
min-height: 100%;
max-width: 960px;
margin:0 auto;
/* equal to footer height */
margin-bottom: -50px;
}
我希望这个 div 忽略上面的内容
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 0;
padding: 0;
}
HTML
<div class="page-wrap">
<img src="logo.jpg" width="150px" height="75px">
<hr/>
</div>
最佳答案
关于html - 如何忽略 parent 的div中心位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45563083/