Add a label background image solutions

<li>
<a id='switch_sys' href='https://www.baidu.com'>
测试
</a>
</li>

#switch_sys{
width: 166px;
/*height: 40px;*/
padding-left: 88px;
background-image:url(/static/qczz/img/switch_yhll.png);
background-repeat:no-repeat;
background-position:center;
}


添加
padding-left:

Guess you like

Origin www.cnblogs.com/He-tao-yuan/p/12325665.html