超出隱藏,不換行,省略號(hào)
overflow:hidden;? ?//超出的文本隱藏
text-overflow:ellipsis;? ?//溢出用省略號(hào)顯示
white-space:nowrap;? ?//溢出不換行
兩行超出隱藏,不換行,省略號(hào)
text-overflow: -o-ellipsis-lastline;
? overflow: hidden;
? text-overflow: ellipsis;
? display: -webkit-box;
? -webkit-line-clamp: 2;
? -webkit-box-orient: vertical;
CSS中劃線(刪除線)樣式代碼 (價(jià)格)
text-decoration:line-through;
a超鏈接
text-decoration:?underline;??/*加下劃線*/
text-decoration:none;? ? ?/*刪除下劃線*/
a鏈接偽元素
a:link? ??/*未訪問的鏈接*/
a:visited? ?/*訪問過的鏈接*/
a:hover? ?/*鼠標(biāo)經(jīng)過時(shí)*/
a:active? ?/*在鼠標(biāo)點(diǎn)擊的同時(shí)*/
css? ? ?3個(gè)4個(gè)5個(gè)字兩邊對(duì)齊
text-align-last: justify;
text-align: justify;
text-justify:distribute-all-lines;
邊框樣式border
none? ? //無邊框?
dotted? ?//邊框?yàn)辄c(diǎn)線
dashed? ?//邊框?yàn)殚L短線
solid? ? //邊框?yàn)閷?shí)線
double? //邊框?yàn)殡p線
鼠標(biāo)手形狀
cursor:hand;
垂直對(duì)齊
vertical-align? ?//參數(shù)
top? //頂對(duì)齊
bottom? //底對(duì)齊
text-top? ?//相對(duì)文本頂對(duì)齊
text-bottom? //相對(duì)文本底對(duì)齊
baseline //基準(zhǔn)線對(duì)齊
middle? //中心對(duì)齊
sub? //以下標(biāo)的形式顯示
super? //以上標(biāo)的形式顯示
css文本縮進(jìn)
text-indent? ?// 縮進(jìn)距離
12px相當(dāng)于一個(gè)文字距離
字體樣式
font-family :?宋體,sans-serif;? ? ? ?/*文字字體*/
font-style: itelic;? ? ? /*文字斜體*/
letter-spacing :? 1pt;? ? /*字間距離*/
列表樣式
list-style-type? ? //樣式
circle? ? // 標(biāo)記是空心圓
square? ?// 標(biāo)記是實(shí)心方塊
decimal? ? //標(biāo)記是數(shù)字
lower-roman? ? //小寫羅馬數(shù)字
upper-roman? ?// 大寫羅馬數(shù)字