box-shadow:像素值1 像素值2 像素值3 像素值4 颜色值 阴影类型
像素值1 :水平阴影位置,可以负值
像素值2 :垂直阴影位置,可以负值
像素值3 :阴影模糊半径(可选属性)
像素值4 :阴影扩展半径,不可为负值
颜色值 :阴影颜色
阴影类型:内阴影(insert)/外阴影为默认值
<!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>box-shadow属性</title>
</head>
<style>
img{
padding:20px;
border-radius: 50%;
border: 1px solid red;
box-shadow: 5px 5px 10px 2px red inset;
}</style>
<body>
<img src="1.jpg" alt="尴尬啊!"/>
</body>
</html>