Hover trên IE 2007-07-19 19:17:48
Code:
div {
background-color: #666;
color: #fff;
h: expression(onmouseover=new Function("this.style.backgroundColor='#ff0'; this.style.color='#000';"),
onmouseout=new Function("this.style.backgroundColor='#666'; this.style.color='#fff';"));
}
div:hover {
background-color: #ff0;
color: #000;
}
<div>BASIC CSS</div>
background-color: #666;
color: #fff;
h: expression(onmouseover=new Function("this.style.backgroundColor='#ff0'; this.style.color='#000';"),
onmouseout=new Function("this.style.backgroundColor='#666'; this.style.color='#fff';"));
}
div:hover {
background-color: #ff0;
color: #000;
}
<div>BASIC CSS</div>
Tra loi 5 comment(s) 2007-07-19 19:17:48
gaulucky92 2008-08-02 09:39:33
===> work 100% :)
Tra loi
Toccata 2008-12-06 01:47:55
onmouseout=new Function("this.style.backgroundColor='#666'; this.style.color='#fff';"));
Tra loi
TG 2008-12-06 04:57:09
this.style.backgroundColor='#ff0'; để set màu background
this.style.color='#000'; để set màu text
Tra loi
ChonCon 2008-12-16 12:04:14
Tra loi
Về Đâu 2009-01-11 04:26:53
Có 1 giải pháp khác cho các bạn nhưng phải dùng JavaScript.
Tra loi
Y kien