半透明遮罩實現全屏幕遮蓋css實現
來源:易賢網 閱讀:1214 次 日期:2014-09-12 11:04:40
溫馨提示:易賢網小編為您整理了“半透明遮罩實現全屏幕遮蓋css實現”,方便廣大網友查閱!

<style>

*html body{height:100%}

.mask{

position:absolute;

left:0;

top:0;

z-index:100;

height:100%;

width:100%;

background:black;

opacity:0.4;

filter:alpha(opacity=40)

}

</style>

<div class="mask"></div>

在ie67下如果不添加 *html body{height:100%} 的話有可能不起作用

更多信息請查看IT技術專欄

更多信息請查看網頁制作
下一篇:chrome css hack
易賢網手機網站地址:半透明遮罩實現全屏幕遮蓋css實現
關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網