height:400px;
width:300px;
margin-bottom:2%;
margin-bottom:8px;
在页面展示过程中出现的情况是将margin-bottom展示的高度不同
错误解决:
margin如果采用百分比布局,则margin-bottom和top百分比依据的父元素是宽度而不是高度,所以如果使用2%,则实际上的底部外边距是6px
height:400px;
width:300px;
margin-bottom:2%;
margin-bottom:8px;
在页面展示过程中出现的情况是将margin-bottom展示的高度不同
错误解决:
margin如果采用百分比布局,则margin-bottom和top百分比依据的父元素是宽度而不是高度,所以如果使用2%,则实际上的底部外边距是6px