首先需要规划网站,本教程将以下图为例构建网站。
其基本布局见下图:
主要由五个部分构成:
Example Source Code
[www.52css.com]
1.MainNavigation导航条,具有按钮特效。Width:760pxHeight:50px
2.Header网站头部图标,包含网站的logo和站名。Width:760pxHeight:150px
3.Content网站的主要内容。Width:480pxHeight:Changesdependingoncontent
4.Sidebar边框,一些附加信息。Width:280pxHeight:Changesdependingon
5.Footer网站底栏,包含版权信息等。Width:760pxHeight:66px
2.Header网站头部图标,包含网站的logo和站名。Width:760pxHeight:150px
3.Content网站的主要内容。Width:480pxHeight:Changesdependingoncontent
4.Sidebar边框,一些附加信息。Width:280pxHeight:Changesdependingon
5.Footer网站底栏,包含版权信息等。Width:760pxHeight:66px