css

ennnn  就随便写写

图: 

<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>JS</title>
</head>
<style>
	* {
		margin: 0;
		padding: 0;
	}

	.container {
		margin: auto;
		width: 2000px;
		display: flex;
		flex-direction: row;
	}

	.container div {
		margin: 40px 20px;
	}

	.box {
		width: 100px;
		height: 100px;
		overflow: hidden;
		position: relative;
	}

	.a {
		width: 180px;
		height: 100px;
		border-radius: 50%;
		background: pink;
		position: absolute;
		z-index: -1;
		left: -60px;
		top: -55px;
	}

	.triangle {
		width: 0;
		height: 0;
		border: 20px solid transparent;
		border-bottom-color: thistle;
	}

	.cicle {
		background-color: teal;
		height: 40px;
		width: 40px;
		border-radius: 40px 0 0 0;
	}

	.arc {
		background-color: tan;
		height: 40px;
		width: 40px;
		border-radius: 40px 0;
		transform: rotate(45deg);
	}

	.message {
		height: 40px;
		width: 100px;
		border-radius: 15px;
		position: relative;
		background-color: slategrey;
		line-height: 40px;
		text-align: center;
		color: #fff;
	}

	.message::before {
		position: absolute;
		content: "";
		height: 0px;
		width: 0px;
		border: 10px solid transparent;
		border-top-color: slategrey;
		top: 40px;
		left: 25px;
	}

	.rectangle {
		width: 40px;
		height: 0px;
		border: 20px solid teal;
		border-color: transparent transparent teal;
	}

	.ball {
		height: 40px;
		width: 40px;
		border-radius: 50%;
		background: radial-gradient(circle at 40px 40px, tan, #fff)
	}

	.rhombua {
		height: 30px;
		width: 30px;
		transform: rotateZ(43deg) skew(30deg, 30deg);
		background-color: aquamarine;
	}

	.hert {
		height: 30px;
		width: 30px;
		background-color: red;
		transform: rotateZ(45deg);
	}

	.hert::after,
	.hert::before {
		content: "";
		width: 100%;
		height: 100%;
		border-radius: 50%;
		display: inline-block;
		background-color: red;
	}

	.hert::after {
		position: absolute;
		left: 0px;
		top: -50%;
	}

	.hert::before {
		position: relative;
		top: 0%;
		left: -50%;
	}

	/* x偏移量 | y偏移量 | 阴影模糊半径 | 阴影扩散半径 | 阴影颜色 */
	/* box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); */
	.shadow {
		height: 40px;
		width: 100px;
		box-shadow: 0px 0px 10px thistle;
		border: none;
		font-size: 10px;
		text-indent: 0em;
		text-align: center;
		line-height: 20px;
	}

	.boxColor {
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
		height: 40px;
		width: 200px;
		background-image: url('./2.png');
		background-size: cover;
	}


	#star-five {
		margin: 50px 0;
		position: relative;
		display: block;
		color: slategrey;
		width: 0px;
		height: 0px;
		border-right: 50px solid transparent;
		border-bottom: 35px solid slategrey;
		border-left: 50px solid transparent;
		-moz-transform: rotate(35deg);
		-webkit-transform: rotate(35deg);
		-ms-transform: rotate(35deg);
		-o-transform: rotate(35deg);
	}

	#star-five:before {
		border-bottom: 40px solid slategrey;
		border-left: 15px solid transparent;
		border-right: 15px solid transparent;
		position: absolute;
		height: 0;
		width: 0;
		top: -23px;
		left: -34px;
		display: block;
		content: '';
		-webkit-transform: rotate(-35deg);
		-moz-transform: rotate(-35deg);
		-ms-transform: rotate(-35deg);
		-o-transform: rotate(-35deg);

	}

	#star-five:after {
		position: absolute;
		display: block;
		color: slategrey;
		top: 3px;
		left: -54px;
		width: 0px;
		height: 0px;
		border-right: 50px solid transparent;
		border-bottom: 35px solid slategrey;
		border-left: 50px solid transparent;
		-webkit-transform: rotate(-70deg);
		-moz-transform: rotate(-70deg);
		-ms-transform: rotate(-70deg);
		-o-transform: rotate(-70deg);
		content: '';
	}
</style>

<body>
	<div class="container">
		<div class="box">
			<div class="a"></div>
		</div>
		<div class="triangle"></div>
		<div class="cicle"></div>
		<div class="arc"></div>
		<div class="message">消息框</div>
		<div class="rectangle"></div>
		<div class="ball"></div>
		<div class="rhombua"></div>
		<div class="hert"></div>
		<div class="shadow"> box-shadow around it.</div>
		<div class="boxColor">
			背景色字体前景色咔咔咔咔咔咔扩扩扩扩扩
		</div>
		<div id="star-five">
		</div>
	</div>
</body>

</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值