一个常用的web效果,记录一下,希望能帮助到大家。高手请绕行。
先上效果:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQuery弹出窗口带透明遮罩层</title>
<style>
body {
height: 1500px;
}
.dj {
padding: 6px 12px;
background: #ddd;
border: 1px solid #eee;
cursor: pointer;
}
#bg {
width: 100%;
height: 100%;
display: none;
position: fixed;
top: 0;