การทำให้หน้าเว็บของเราสามารถดูได้อย่างเดียว
หน้าแรก CSS การทำให้หน้าเว็บของเราสามารถดูได้อย่างเดียว
ตัวอย่าง คลิกที่นี่เพื่อดูตัวอย่้าง
CSS Code ใส่ส่วนของแท็ก
- "text/css">
- html {
- height: 100%;
- }
- body {
- background: #000;
- padding: 0;
- margin: 0;
- width: 100%;
- height: 100%;
- }
- #overlay {
- position: absolute;
- top: 0px;
- left: 0px;
- background: #ccc;
- width: 100%;
- height: 100%;
- opacity: .5;
- filter: alpha(opacity=50);
- -moz-opacity: .5;
- }
แทรกแท็ก ต่อไปนี้
- <div id="overlay">div>
ภายในแท็ก โดยแทรกต่อจากแท็ก
ตัวอย่าง
<body>
<div id="overlay"></div>
<!--เนื้อหาภายในเว็บ-->
</body>
ขึ้นไปด้านบน
