偽元素 誰能講講這段代碼啊?
.index-menu .menu-tips:after{
position: absolute;
content: '';
left: 0;
bottom: 0;
width: 0;
height: 0;
border-left: 78px solid transparent;
border-right: 78px solid transparent;
border-bottom:10px solid #fff;
}
.index-menu .menu-tips:after{
position: absolute;
content: '';
left: 0;
bottom: 0;
width: 0;
height: 0;
border-left: 78px solid transparent;
border-right: 78px solid transparent;
border-bottom:10px solid #fff;
}
2016-06-26
舉報
2016-07-05
用border畫三角形請參考如下,其實非常容易理解
http://www.zhangxinxu.com/wordpress/2010/05/css-border%E4%B8%89%E8%A7%92%E3%80%81%E5%9C%86%E8%A7%92%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E6%8A%80%E6%9C%AF%E7%AE%80%E4%BB%8B/
demo參考
http://www.ziven27.com/cssAngle/
2016-06-26
給.index-menu .menu-tips這個元素的尾部添加了一個三角的元素了呢