HTML颜色Color
程序员文章站
2022-06-01 10:47:04
...
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
width: 100vw;
height: 100vh;
}
div {
width: 25vw;
height: 25vh;
border-radius: 25px;
}
.flex {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
</head>
<body class="flex">
<div style="background-color: rgb(255, 0, 0, 0.5);"></div>
<div style="background-color: rgb(255, 0, 0, 1);"></div>
</body>
</html>
上一篇: Color Detection 颜色定位