css url() not recognized in internet explorer 10

后端 未结 4 917
盖世英雄少女心
盖世英雄少女心 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 07:58

    I had the same situation in IE 11. The content is

    So in Chrome it works like this

    .image {
      content: url("image.jpg");
    }
    

    To make it Works in IE i have set the content option to :after element. Like

    .image:after {
      content: url("image.jpg");
    }
    

提交回复
热议问题