Bug Tracker

Opened 12 years ago

Closed 12 years ago

#1345 closed bug (worksforme)

setting opacity cannt work in ie6

Reported by: doutu Owned by:
Priority: major Milestone: 1.1.4
Component: build Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:

Description

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>CSS Star Rating System</title> <script src="jquery.js" type="text/javascript"></script> <script type="text/JavaScript"> $(function(){

$('#test').click(function(){

$(this).css('opacity',50); alert(this.style.cssText);

height:500px;width:500px;background:#f2f2f2; opacity:50

});

}); </script> </head> <body> <div id='test' style="height:500px;width:500px;background:#f2f2f2"></div> </body> </html>

Change History (1)

comment:1 Changed 12 years ago by scott.gonzal

Resolution: worksforme
Status: newclosed

The opacity settings expects a value between 0 and 1, not 0 and 100. Try $(this).css('opacity' 0.5);

Note: See TracTickets for help on using tickets.