日期:2014-05-19 浏览次数:20708 次
<html> <head> <style type="text/css"> .test { position:absolute; filter:alpha(opacity=30); opacity:0.3; background:gray; z-index:1; width:200px; height:150px; left:100px; top:100px; } .test1 { width:180px; height:130px; background:white; position:absolute; left:10px; top:10px; z-index:100; } </style> </head> <body> <div class="test"> <div class="test1"> 不想让里面这层透明,该怎样做? </div> </div> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> </body> </html>
<html> <head> <script src="js/jquery-1.5.1.js"></script> <style type="text/css"> .test { position:absolute; filter:alpha(opacity=30); opacity:0.3; background:gray; z-index:1; width:200px; height:150px; left:100px; top:100px; } .test1 { width:180px; height:130px; background:white; position:absolute; left:10px; top:10px; z-index:100; } </style> <SCRIPT LANGUAGE="JavaScript"> <!-- $(function(){ $('.test1').css({"left":"110px","top":"110px"}); $('.test1').show() }); //--> </SCRIPT> </head> <body> <div class="test"> </div> <div class="test1" style="display:none" > 不想让里面这层透明,该怎样做? </div> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/> xxx