3.10 作業 - 固定式版型

作業:固定式二欄版型

請在作業的資料夾裡面,建立 two_columns.html 來撰寫:

  • 整體寬度 1200px 置中。

  • 間距都設定 20px。

  • 側邊欄 200px。

下圖是完成結果:

結果

提供 html:

額外提示:

  • 寬度計算:width: calc(100% - 200px - 20px);。()

  • 空格消除:font-size: 0;

  • 區塊水平方向置中:margin: 0 auto;

Last updated