3.10 練習 - 固定式版型
練習一:固定式二欄版型
請在 practice
資料夾,建立 two_columns.html
來撰寫:
整體寬度 1200px 置中。
間距都設定 20px。
側邊欄 200px。
下圖是完成結果:
提供 html:
額外提示:
寬度計算:
width: calc(100% - 200px - 20px);
。()空格消除:
font-size: 0;
。區塊水平方向置中:
margin: 0 auto;
。
參考作法:
練習二:固定式三欄版型
Last updated