using background image for li

前端 未结 6 2499
执笔经年
执笔经年 2021-02-20 03:31

I\'m using a background image for a

  • that will be used as a button, but it\'s not fully shown; however, when write text then it shows. I don\'t want text
  • 6条回答
    •  星月不相逢
      2021-02-20 04:09

      May be help in this

      .tab-content ul li{display: block;padding-left: 30px;background-image:url('images/blue-icon.png');background-repeat: no-repeat;background-position: 0 2px;margin-bottom: 10px;}
      

    提交回复
    热议问题