左边的浮动对象与右边的浮动对象保持重叠。
用于左浮动的css:
.righthomebar {
background-color: brown;
height:920px;
position:absolute;
top:60px;
margin-left: 10px;
float:left;
padding-left: 10px;
}
右浮动div的css:
.content-text {
min-height:550px;
max-width: 850px;
border-style:solid;
position:relative;
float:right;
top: 20px;
padding-top:5px;
padding-right:5px;
padding-bottom:5px;
padding-left:5px;
}
发布于 2020-08-23 13:18:38
使用以下单位缩放您的元素:
vw - Relative to 1% of the width of the viewport
vh - Relative to 1% of the height of the viewport
vmin - Relative to 1% of viewport's smaller dimension
vmax - Relative to 1% of viewport's larger dimension
发布于 2020-08-23 15:00:54
https://stackoverflow.com/questions/63546738
复制相似问题