<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style type="text/css">
.box{ width:800px; height:300px; padding:100px;}
.alpha{ width:800px; height:300px; overflow:hidden; background:#ff0; filter:alpha(opacity=50); -moz-opacity:0.5;opacity: 0.5; color:#f0f}
</style>
<body>
<div class="box">
<div class="alpha">
<p>
内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p>
</div>
</div>
</body>
</html>
CSS+DIV背景透明
最新推荐文章于 2024-04-28 17:46:18 发布