CSS로 투명 상자를 만들려면 다음 코드를 실행해 보세요.
예시
<!DOCTYPE html> <html> <head> <style> div { background-color: #808000; padding: 20px; } div.myopacity { opacity: 0.4; filter: alpha(opacity=80); } </style> </head> <body> <h1>Heading</h1> <p>Check trensparency in the below box:</p> <div class = "myopacity"> <p>opacity 0.4</p> </div> <div> <p>opacity 1</p> </div> </body> </html>