<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.bordertest {
			border: 30px solid red;
		/* 	background: green; */
			background-clip:content-box;
			width:500px;
			height:300px;
						}
		</style>
	</head>
	<body>
		<div class="bordertest">
			<hr>xxxxxxxxxxxxxx
			<hr>xxxxxxxxxxxxxx
			<hr>xxxxxxxxxxxxxx
			<hr>xxxxxxxxxxxxxx
			<hr>xxxxxxxxxxxxxx
			<hr>xxxxxxxxxxxxxx
		</div>
	</body>
</html>

CSS3 背景属性 backgrund-clip
backgrund-clip有三个属性,限定背景出现的区域
默认为padding-clip
CSS3 背景属性 backgrund-clip

相关文章:

  • 2021-11-07
  • 2021-07-19
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-10-29
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-12-04
相关资源
相似解决方案