TOM網站很漂亮,速度也不錯,首頁干凈,整潔,不知用什么開發的.決定用EXTJS仿照個他的首頁,看看能不能達到他的效果.呵呵.
一. * CSS: 通配符, 即所有標簽的默認值.
* {
margin: 0px;
//外邊框間的距離. (必須指定,否則在IE中,默認的距離為8px.)
padding: 0px;
//內邊框與所包含的內容間的距離. (必須指定,否則在IE中,默認的距離為8px.)
list-style-position: outside;
list-style-image: none;
list-style-type: none;
}
二. <html> CSS:
html {
background-attachment: scroll;
background-image: url(../theme/bg.gif);
//背景圖像.(覆蓋BODY沒覆蓋到的位置)
background-repeat: repeat-x;
//背景是否重復
background-position: center top;
font-family: Arial, Helvetica, sans-serif;
//字體
font-size: 12px;
//字體大小
color: #3333333;
//字體顏色
}
三. <body> CSS:
body {
background-attachment: scroll;
//背景附件
background-image: url(../theme/bgimg.jpg);
//背景圖像
background-repeat: no-repeat;
//背景是否重復
background-position: center top;
//背景水平,垂直
}
四. 網站一般外層邊框<div> CSS類:
.類名{
margin: 0 auto;
//外邊框上和左0px,下和右自動.
width: 950px;
//寬950px.(800*600分辨率,網站各個外層<div>必須指定)
}
網站頂部<div> CSS 類:
.header {
margin: 0 auto;
//外邊框上0px,左auto指居中.下和右無定義.
padding: 5px;
//內邊框與所包含的內容間的距離,上下左右5px.
height: 50px;
//高50px.
width: 950px;
//寬950px.(800*600分辨率,網站各個外層<div>必須指定)
}
posted on 2008-09-22 13:13
紫蝶∏飛揚↗ 閱讀(482)
評論(0) 編輯 收藏 所屬分類:
隨想 、
CSS