width和height的100%和auto的区别以及height:100%无效的场景

一: 父容器有height,width 1:子元素宽度为100%css #father{ width: 200px; height: 200px; background-color: #cccccc; border: 2px solid red; } #son{ width:100%; height: 100px; background-color: #55ceff; margin-top:
相关文章
相关标签/搜索