css url() not recognized in internet explorer 10

后端 未结 4 915
盖世英雄少女心
盖世英雄少女心 2021-01-05 07:32

I have this line in my CSS:

.ui-icon-zoom-in { content: url(images/16x16/ZoomIn.png); } 

Which I am using with jQuery UI Button widget li

4条回答
  •  隐瞒了意图╮
    2021-01-05 08:10

    The content property is only accepted on :before and :after pseudo-elements in CSS3. You should probably use a jQuery selector to append the image to the object:

    $("#zoomin").html("Zoom In");
    

提交回复
热议问题