日期:2014-05-17  浏览次数:20679 次

如何实现div背景透明而内容不透明?
如何实现div背景透明而内容不透明? 就想新浪微博右边部分一样的效果。

------解决方案--------------------
滤镜或者脚本都可以做到的。。
------解决方案--------------------
HTML code

<style type="text/css">
.d{ background:url(left_2.png) no-repeat ; height:200px; width::120px; font-size:14px;}
.a{width:120px; height:200px;background:rgba(255, 255, 255, 0.6)!important;
filter:Alpha(opacity=60); background:#fff; /* 使用IE专属滤镜实现IE背景透明*/}

</style>
</head>

<body>
<div class="d"><div class="a">新浪微博</div></div>