您所在的位置:小祥子 » 编程 » CSS » 正文

兼容浏览器的div透明

时间:2015-05-20 编辑:1565783227 来源:本站整理

<!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>div透明</title>
<style type="text/CSS">
<!--
body {
background-image: url(100/www.aigle1853.co.kr/websrc/images/common/bg_wrap2.jpg);
background-repeat: no-repeat;
background-position: center top;
background-attachment:fixed;
}
-->
</style>
</head>

<body>
<div style="filter: alpha(opacity=50);-moz-opacity: 0.1;opacity: 0.1; height:300px; width:300px; color:#f00; background-color:#000000;">
www.100sucai.com
</div>
<div style=" height:1500px;"></div>
</body>
</html>

转载自:http://www.100sucai.com

关键词:浏览器 div