我们显示图片的时候为了单调通常都会添加一个阴影效果为了显示美观
主要实用了box-shadow:属性 属性介绍

2.代码示例:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>图片按钮实验</title>
		<style type="text/css">
         img{
			 border-radius: 5px;
			 margin-top: 40px;
			 margin-left: 300px;
			 width: 700px;
			 height: 400px;
			 box-shadow:0 5px 20px rgba(0,0,0,0.5)
		 }
		</style>
	</head>
	<body>
		<img src="https://i.loli.net/2020/04/11/6ZfB4y5oVpWHC9N.png">
	</body>
</html>

3.代码效果展示

相关文章:

  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-08-11
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2021-10-24
  • 2022-12-23
  • 2021-04-14
相关资源
相似解决方案