修改模版常用樣式
左右浮動
1 2 |
.z { float: left; } .y { float: right; } |
清除浮動
1 |
.cl { zoom: 1; } |
字型大小
1 2 3 |
.xs1 { font-size: 12px !important; } .xs2 { font-size: 14px !important; } .xs3 { font-size: 16px !important; } |
字型顏色
1 2 3 4 |
.xg1 { color: LIGHTTEXT !important; } //淺色文字 .xg2 { color: MIDTEXT; } //中等文本顏色 .xi2 { color: HIGHLIGHTLINK !important; } //高亮鏈接顏色 .rq { color: red; } |
文字粗細
1 2 |
.xw0 { font-weight: 400; } .xw1 { font-weight: 700; } |
邊框
1 2 3 4 |
.bbda { border-bottom: 1px dashed COMMONBORDER; } //虛線 .bbs { border-bottom: 1px solid COMMONBORDER !important; } //實線 .mnw { clear: both; border-top: 1px solid #CCC; } //實線 .bmw { border: 1px solid #D9D9D9; } |
去邊框
1 |
.bw0_all, .bw0_all th, .bw0_all td { border: none !important; } |
去邊框去背景色
1 |
.bw0 { border: none !important; } |
居中
1 2 |
.vm { vertical-align: middle; } .hm { text-align: center; } |
滑鼠樣式
1 |
.cur1 { cursor: pointer; } |
外邊距
1 2 3 4 5 6 |
.mtn { margin-top: 5px !important; } .mbn { margin-bottom: 5px !important; } .mtm { margin-top: 10px !important; } .mbm { margin-bottom: 10px !important; } .mtw { margin-top: 20px !important; } .mbw { margin-bottom: 20px !important; } |
內邊距
1 2 3 4 5 6 |
.ptn { padding-top: 5px !important; } .pbn { padding-bottom: 5px !important; } .ptm { padding-top: 10px !important; } .pbm { padding-bottom: 10px !important; } .ptw { padding-top: 20px !important; } .pbw { padding-bottom: 20px !important; } |
內邊距
1 2 |
.bm_c {padding: 10px;} .emp {padding: 20px 10px;} |