0
基本上,我不明白为什么不在右上角?它将自己定位在底部,即使按照我的理解,它应该位于右上角?侧栏不正确定位
见的jsfiddle详细代码
#content section {
padding: 4%;
width: 70%;
float: left;
background-color: white;
margin-bottom:8%;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
aside {
width: 30%;
float: right;
background-color: green;
}
的ISSE开始在你的HTML - >既然你有之前'aside'元素的元素,这最后一个只显示后。你可以** 1)**将'position:absolute'添加到''aside'元素或者** 2)**改变你的HTML布局。 – fiskolin