Better Compatibility When Put the Picture in the CSS than HTML
Recently when make some webpages, clearly taste that put the picture in the CSS can be compatibled in more web explorer.
For example especially when use some active code (function) like : <%=News("xxx",,"<div class=""Itemindex""> <img src=Images/title.gif /><a href=""Read.Asp?NewsID="">Title</a> </div>","")%>
CSS:.Itemindex{ border-bottom:1px dashed #CCC;}
U can see the red highlighted code when the picture used in the html code, it display in the IE6 will abate some CSS style.
But when we write like this <%=News("xxx",,"<div class=""Itemindex""> <a href=""Read.Asp?NewsID="">Title</a> </div>","")%>
CSS:.Itemindex{ border-bottom:1px dashed #CCC; background-image:url(title.gif); background-repeat:no-repeat;}
This new style can be show us all the expected look.
本站评论、留言功能已永久关闭

◎welcome to give out your point。