- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
- <HTML xmlns="http://www.w3.org/1999/xhtml">
- <meta http-equiv="Content-Type" content="text/html; charset=gbk">
- <title>透明</title>
- <head>
- <style>
- #popupmenu_popup {
- color: #154BA0;
- border: 1px solid #86B9D6;
- background: #D9EEF9;
- filter: Alpha(Opacity=50, Style=0); /*ie firefox下通用的写法*/
- opacity: 0.50;
- position: absolute;
- z-index: 30;
- left:300px;
- top: 64px;
- height: 69px;
- width:134px;
- }
- #popupmenu_text {
- color: #154BA0;
- position: absolute;
- z-index: 40;
- left:301px;
- top: 65px;
- height: 69px;
- width:134px;
- text-align:center;
- }
- </style>
- </head>
- <body >
- <div id="popupmenu_popup"></div>
- <div id="popupmenu_text">DIV半透明但文字不透明</div>
- </body>
- </html>
转载于:https://blog.51cto.com/3114190/568797