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
Release: 2016-06-24 11:43:59
Original
1358 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template