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:
相關文章
相關標籤/搜索