css

43、不透明性

yu
yu
2024-09-30 / 0 评论 / 6 阅读 / 正在检测是否收录...

<!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>opacity</title>
    <style>
        .box1{
            width: 200px;
            height: 200px;
            background-color: orange;
            font-size: 40px;
            opacity: 0.5;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="box1">你好啊</div>
</body>
</html>
0

评论 (0)

取消