Home > Web Front-end > HTML Tutorial > CSS3转换 | css遮罩_html/css_WEB-ITnose

CSS3转换 | css遮罩_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:18:54
Original
943 people have browsed it

<!DOCTYPE><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>CSS3转换 | css遮罩</title><script>  function showDiv(){   document.getElementById('bg').style.display = 'block';   document.getElementById('show').style.display = 'block';  }    function hidden1(){   document.getElementById('bg').style.display = 'none';   document.getElementById('show').style.display = 'none';  }</script><style> #bg{ background-color:#000000; opacity:0.5; width:100%; height:100%; z-index:1000; position:absolute; top:0%; left:0%; display:none }  #show{ background-color:white; width:500px; height:500px; z-index:1002; border:6px solid #E8E9F7; position:absolute; top:20%; left:20%; display:none; border-radius:25px;}  #css3div{  opacity: 0.6;  font-size:16px;  color:#FFFFFF;  border-radius:10px; border:5px solid #FFCC99; background-color:#66FF99; width:100px; height:50px; text-align:center; padding-top:30px;  margin-left:40%;  -webkit-transition: width 2s, height 2s, -webkit-transform 2s, opacity 1s, background 1s, font-size 1s; }  #css3div:hover{  width:150px; height:70px;  -webkit-transform:rotate(360deg);  background-color:#6633FF;  opacity: 1;  font-size:20px;  color:#FFFFFF; }  </style></head><body><input type="button" onClick="showDiv()" value="show" /><div id='bg'></div><div id="show">  <input type="button" onClick="hidden1()" value="hidden" />  <h1 style="text-shadow: 5px 5px 5px #FF0000;">哈哈的厉害厉害</h1>  <div id='css3div'>CSS3效果</div></div></body></html>
Copy after login

Related labels:
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