Css 损坏的图像图标删除

Css 损坏的图像图标删除,css,internet-explorer,Css,Internet Explorer,我试图摆脱破碎的图像图标。我找到了一个可以在chrome和firefox上运行的解决方案。当我在IE中打开页面时,什么也没发生 有人能帮我吗?这是一个jsfiddle img { position: relative; } /* style this to fit your needs */ /* and remove [alt] to apply to all images*/ img:after { display: block; position: absolute; t

我试图摆脱破碎的图像图标。我找到了一个可以在chrome和firefox上运行的解决方案。当我在IE中打开页面时,什么也没发生

有人能帮我吗?这是一个jsfiddle

img {  position: relative; }
/* style this to fit your needs */
/* and remove [alt] to apply to all images*/
img:after {  
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #999;
  content: attr(alt);
} 
<img src="broken" alt="A broken image">`
img{position:relative;}
/*根据您的需要设计此款*/
/*并删除[alt]以应用于所有图像*/
img:在{
显示:块;
位置:绝对位置;
排名:0;
左:0;
宽度:100%;
身高:100%;
背景色:#999;
内容:attr(alt);
} 
`

什么是IE。。。只是没有一个破碎的形象?@nanditarorasharma,我知道;)但是我的问题有另一个意思…对不起,我没有理解你的另一个意思:p