码迷,mamicode.com
首页 > 其他好文 > 详细

颜色rgba、hsla

时间:2018-08-18 11:35:37      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:img   position   pad   htm   ott   back   ges   rgba   rgb   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
margin: 0;
padding: 0;
background: url(./images/bg.jpg);
}

.layer {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
/*background-color: rgba(0, 0, 0, 0.3);*/
background-color: hsla(0, 10%, 10%, 0.3);
/*opacity: 0.3;*/
/*width: 100%;
height: 100%;*/
}
</style>
</head>
<body>
<div class="layer">
<img src="./images/layer.jpg" >
</div>
</body>
</html>

颜色rgba、hsla

标签:img   position   pad   htm   ott   back   ges   rgba   rgb   

原文地址:https://www.cnblogs.com/wyq-web/p/9496281.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!