Home >Web Front-end >HTML Tutorial >CSS style to set div background to be transparent_html/css_WEB-ITnose

CSS style to set div background to be transparent_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:591343browse

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:

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


equiv="Content-Type" content="text/html; charset=utf-8" /> ;




< ;/body>

Reprinted from: www.100sucai.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn