功能测试

Better Compatibility When Put the Picture in the CSS than HTML

Author: FreeStar | View: | Time: 2009-6-4

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.

Related Entries:

◎welcome to give out your point。

Calendar

<< 2010-5 >>

Sun

Mon

Tue

Wed

Thu

Fri

Sat

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

Comment function was closed.
本站评论、留言功能已永久关闭
Copyright © 2003-2010 FreeStar, Some Rights Reserved.| Comment function closed 评论、留言功能已关闭 | ZBlog | 80Diy_Style | ICP NO.08102770