web前端面試-------css實現左側固定寬度,右側寬度自適應的五種方式

1.浮動佈局css     左側設置固定寬而且左浮動,右側加個margin-left;html .box1{ background: red; width: 200px; float: left; } .box2{ background: darkcyan; margin-left: 200px; } 2.calc()計算屬性瀏覽器 設置固定寬而且左浮動,右側寬度爲calc(100
相關文章
相關標籤/搜索