已采納回答 / 慕慕5304577
首先你要清楚:before這個偽類的含義,按你的代碼來看li標(biāo)簽應(yīng)該在css中已使用position這個屬性因此這里使用left就合理了,至于left:0的含義我就不多說了如果不懂建議看看慕課網(wǎng)css入門篇。
2018-08-12
<style>
div:empty {
border: 1px solid green;
}
</style>
div:empty {
border: 1px solid green;
}
</style>
2018-08-11
已采納回答 / qq_離嶼_04048864
在你的任務(wù)四和任務(wù)五代碼中,①你把::before寫錯了,②margin-left:-60pxS單位寫錯了,應(yīng)該是px。
2018-08-11
有關(guān)border-image的詳細(xì)解釋
http://www.zhangxinxu.com/wordpress/2010/01/css3-border-image/
http://www.tuicool.com/articles/EJZnUnm
http://www.zhangxinxu.com/wordpress/2010/01/css3-border-image/
http://www.tuicool.com/articles/EJZnUnm
2018-08-10
最新回答 / 清風(fēng)曉陽
jQ中有你想要的處理方法,就是在事件后面,.move()方法。你可以朝著這個方向去考慮。當(dāng)hover().mover(),css中不是很清楚。但是你可以朝著這個方向去做
最新回答 / 恰逢暮雪
尺寸小于480px時生效的是@media (max-width: 480px)里的樣式
最新回答 / 是狼還是哈士奇
data-value = "123"? ? ?這里的data屬性可以直接取? ?不用 attr? ?如? $("img").data('src-600px')? ?
2018-08-09
最新回答 / Chanow
px是設(shè)置具體的字體大小的,em則是相對父級元素字體大小而改變,比如子級設(shè)置的字體是1em,父級字體是18px,那么子級的字體大小就是18px,如果是2em,那么子級的字體大小就是36px。而rem的話就是相對于最外面的根節(jié)點也就是body里面設(shè)置的字體大小來相應(yīng)調(diào)整的同em一樣1rem就是一倍大小
2018-08-08
這三種不同寫法可作參考
.wrapper > div:nth-of-type(2n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-first-child(4n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-last-child(2n+1),
.wrapper > p:nth-of-type(even){
background: orange;
}
.wrapper > div:nth-of-type(2n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-first-child(4n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-last-child(2n+1),
.wrapper > p:nth-of-type(even){
background: orange;
}
2018-08-08
已采納回答 / Cejron
(1)li 居中? ? ??li本身是塊元素(display:block;),會獨占一行。把它設(shè)成行內(nèi)塊(display:inline-block;)后它,就不會獨占一行了,并且這時它就具備了文字的屬性(相當(dāng)于一段文字),在父容器設(shè)text-align:center;就可以居中了。?父容器:ul{text-align:center;} 子元素 : li{display:inline-block;}(2)li距離? ? ?padding,margin都可以,但是padding會擴(kuò)展自身的內(nèi)容(3)margi...
2018-08-08