我想只爲左下角的div提供不透明度。 這可能嗎?怎麼樣?只有在特定區域的不透明度
<div id="right_img"></div>
CSS
#right_img
{
float:right;
width:600px;
height:400px;
margin-top:100px;
background:url(../images/assets/sobrf-maria-page.jpg) no-repeat bottom center;
opacity:0.6;
filter:alpha(opacity=60);
}
如果我給不透明度爲完整的DIV,圖像的清晰度會丟失。
我不認爲可以通過CSS將元素的特定區域賦予不透明度,除非您使用RGBA的CSS漸變。也許你有一個你想要完成的例子,比如模型? – 2012-07-31 07:45:23
使用html5 canvas&javascript來做這些有點東西。 – SVS 2012-07-31 07:54:34