Opened 16 years ago
Closed 15 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"
<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>
Note: See
TracTickets for help on using
tickets.
The opacity settings expects a value between 0 and 1, not 0 and 100. Try $(this).css('opacity' 0.5);