Fork me on GitHub

css中伪选择器使用

                           首先先展示效果图

  

 

 如图红圈标注的地方 使用伪类选择器  :before 

他的常用方法   position: absolute; left: 0; top: -1px; content: ''; width: 16px; height: 16px; background: url(../images/ask_hh.png) center center no-repeat; background-size: 15px auto; 


 

posted @ 2017-09-06 17:14  纳兰性急  阅读(245)  评论(0编辑  收藏  举报