為什么那個(gè)擋住的SPAN標(biāo)簽要加上position:relative呢?
?.topmenu .lihover span /*白色小方框*/
? ? ? ? {
? ? ? ? ? ? background: white;
? ? ? ? ? ? display: inline-block;
? ? ? ? ? ? z-index: 20;
? ? ? ? ? ? width: 20px;
? ? ? ? ? ? height: 30px;
? ? ? ? ? ? float: right;
? ? ? ? ? ? position: relative;
? ? ? ? ?}?
如題
2016-01-27
z-index 屬性要求元素設(shè)置了position屬性——relative、absolute、fixed
2015-09-02
他是為了以LI為父級(jí)元素來(lái)實(shí)現(xiàn)定位,
2015-04-17
如果不用position 那么這個(gè)span標(biāo)簽就會(huì)擠出去 實(shí)現(xiàn)不了遮蓋效果