首页 > Web开发 > 详细

css 实现边框内圆角

时间:2019-11-03 11:52:23      阅读:121      评论:0      收藏:0      [点我收藏+]

需要用到的知识就是box-shadow , 和 outline  实现多重边框

技术分享图片

 

实现这样的效果

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.dd {
				position: absolute;
				left: 400px;
				top: 200px;
				width: calc(100% - 800px);
				height: calc(100% - 400px);
				background: lawngreen;
				
				border-radius: 50px;
				box-shadow: 0 0 0 30px #665555;
				outline: 50px solid #665555;
				
				
			}
		</style>
	</head>
	<body>
		
		<div class="dd">
			
		</div>
		
		
	</body>
</html>

  

 

css 实现边框内圆角

原文:https://www.cnblogs.com/lilei-site/p/11785466.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!