如果說(shuō)只有一個(gè)樣式的話,可以使用行內(nèi)樣式,只有過(guò)多的class感覺(jué)比較亂
2017-08-03
.i{
display: inline-block;
width: 7px;line-height: 7px;
border-width: 7px;
border-style: solid;
border-color: transparent red transparent transparent;
margin-right: 5px;
}
display: inline-block;
width: 7px;line-height: 7px;
border-width: 7px;
border-style: solid;
border-color: transparent red transparent transparent;
margin-right: 5px;
}
2017-07-31
最新回答 / 破舊的時(shí)光機(jī)3662066
所有的標(biāo)簽都沒(méi)有class上面的css怎么執(zhí)行啊 你對(duì)應(yīng)的加上class就好了
2017-07-30
試試 word-spacing: -4px;
解決方案有很多,各有利弊,參考https://www.zhihu.com/question/21468450
解決方案有很多,各有利弊,參考https://www.zhihu.com/question/21468450
2017-07-18
還是比較喜歡用border寫(xiě)三角形
display: inline-block;
content: "";
width: 0;height: 0;
border-top:5px solid transparent;
border-right:5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid black;
margin-left: 5px;
height: 100%;
vertical-align: middle;
display: inline-block;
content: "";
width: 0;height: 0;
border-top:5px solid transparent;
border-right:5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid black;
margin-left: 5px;
height: 100%;
vertical-align: middle;
2017-07-12
用span標(biāo)簽做出三角形其實(shí)就是CSS繪制圖形的知識(shí),有興趣的可以參考http://idcbgp.cn/learn/588
2017-07-02
最新回答 / 破舊的時(shí)光機(jī)3662066
那個(gè)窗口大小擠壓導(dǎo)致的 a span都不是塊級(jí)元素,你換成了inline-block 就在一行同時(shí)margin屬性可以使用
2017-06-26