Home >Web Front-end >HTML Tutorial >CSS style to set div background to be transparent_html/css_WEB-ITnose
div background transparent style:
Style code:
.alert{filter:alpha(opacity=100); /* IE */ -moz-opacity :1.0; /* Moz FF */
opacity: 1.0; height:300px; width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;margin -left:-250px;position:absolute;z-index:99; text-align:center; padding:20px;}
Usage:
Transparent background
html code:
Reprinted from: www.100sucai.com