请问老师边框怎么设置透明度,请老师检查
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>css圆角和边框</title>
<style type="text/css">
div{
width: 300px;
height: 100px;
border:20px solid blue;
padding:30px;
background: url(http://img1.sycdn.imooc.com/climg//582c342b0001fd6507000210.jpg) no-repeat;
}
div:hover{
background: url(http://img1.sycdn.imooc.com/climg//582c34220001091605000150.jpg) no-repeat 10px 10px;
background-origin: content-box;
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
2
收起
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星