Bug Tracker

Ticket #1345 (closed bug: worksforme)

Opened 1 year ago

Last modified 7 months ago

setting opacity cannt work in ie6

Reported by: doutu Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.4 Component: build
Version: 1.1.3 Keywords:
Cc: Needs: Review

Description

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"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>

Attachments

Change History

Changed 7 months ago by scott.gonzalez

  • status changed from new to closed
  • resolution set to worksforme

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.