通常要做一頁像以下這樣的置中網頁↓
需將版型定義為以下區塊↓
只要在 wrapper 的語法中,加入 margin:0 auto; 並為wrapper設定寬度, 即可讓整個版型置中,完整的語法如下
#wrapper{
margin:0 auto;
width:1200px;
position:relative;
}
文章標籤
全站熱搜
通常要做一頁像以下這樣的置中網頁↓
需將版型定義為以下區塊↓
只要在 wrapper 的語法中,加入 margin:0 auto; 並為wrapper設定寬度, 即可讓整個版型置中,完整的語法如下
#wrapper{
margin:0 auto;
width:1200px;
position:relative;
}
留言列表