DMOZ中文网站分类目录-免费收录各类优秀网站的中文网站目录.
  • DmozDir.org
DMOZ目录快速登录入口-免费收录各类优秀网站的中文网站目录.由人工编辑,并提供网站分类目录检索及地区分类目录检索,是站长免费推广网站的有力平台!

CSS手绘图形

  • CSS手绘图形

  • 已被浏览: 35 次2020年10月25日    来源:  https://blog.csdn.net/weixin_45820444/article/details/109249131
  • ? 就会这么点儿东西 1024全教给你们 程序员日快乐 感谢每一个努力奋斗的人 努力不一定成功 但失败了不会觉得惋惜 最难的不是开始 是日复一日的坚持。 钻石 !DOCTYPE html html lang en head meta

    ? 就会这么点儿东西,1024全教给你们,程序员日快乐!感谢每一个努力奋斗的人,努力不一定成功,但失败了不会觉得惋惜,最难的不是开始,是日复一日的坚持。

    钻石

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		border-style:solid;
    		border-color:transparent transparent red transparent;
    		border-width: 0 25px 25px 25px;
    		height: 0;
    		width: 50px;
    		position: relative;
    		margin:20px 0 50px 0;
    	}
    	#box:after{
    		content:"";
    		position: absolute;
    		top:25px;
    		left:-25px;
    		width:0;
    		height:0;
    		border-style:solid;
    		border-color:red transparent transparent transparent;
    		border-width:70px 50px 0 50px;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    鸡蛋

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		display: block;
    		width:126px;
    		height:180px;
    		background-color: red;
    		-webkit-border-radius:63px 63px 63px 63px / 108px 108px 72px 72px;
    		border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    爆炸

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		background-color: red;
    		width: 80px;
    		height: 80px;
    		margin:40px;
    		position: relative;
    		text-align: center;
    	}
    	#box:before,#box:after{
    		content: "";
    		position: absolute;
    		top:0;left:0;
    		width: 80px;
    		height: 80px;
    		background-color: red;
    	}
    	#box:before{
    		transform:rotate(30deg);
    	}
    	#box:after{
    		transform:rotate(60deg);
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    太极

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		width: 96px;
    		height: 48px;
    		margin: 40px;
    		background-color: #eee;
    		border-color: red;
    		border-style: solid;
    		border-width:2px 2px 50px 2px;
    		border-radius: 100%;
    		position: relative;
    	}
    	#box:before{
    		content:"";
    		position: absolute;
    		top:50%;
    		left:0;
    		background-color: #eee;
    		border:18px solid red;
    		border-radius: 100%;
    		width: 12px;
    		height: 12px;
    	}
    	#box:after{
    		content:"";
    		position: absolute;
    		top:50%;
    		left:50%;
    		background-color: red;
    		border:18px solid #eee;
    		border-radius: 100%;
    		width: 12px;
    		height: 12px;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    Face boox

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		background: red;
    		text-indent: -999em;
    		width: 100px;
    		height: 110px;
    		margin: 40px;
    		border-radius:5px;
    		position: relative;
    		overflow: hidden;
    		border: 15px solid red;
    		border-bottom: 0;
    	}
    	#box:before{
    		content:"/20";
    		position: absolute;
    		background-color: red;
    		width: 40px;
    		height: 90px;
    		bottom: -30px;
    		right: -37px;
    		border: 20px solid #eee;
    		border-radius: 25px;
    	}
    	#box:after{
    		content:"/20";
    		position: absolute;
    		top: 50px;
    		width: 55px;
    		height: 20px;
    		background-color: #eee;
    		right: 5px;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    残月

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		width: 80px;
    		height: 80px;
    		border-radius: 50%;
    		box-shadow: 15px 15px 0 0 red;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    半圆

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		width: 0;
    		height: 0;
    		border-right: 100px dotted transparent;
    		border-bottom: 100px dotted red;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    弯尾箭头

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		position: relative;
    		width: 0;
    		height: 0;
    		margin: 20px;
    		border-top: 9px solid transparent;
    		border-right: 9px solid red;
    		transform: rotate(10deg);
    	}
    	#box:after{
    		content:"";
    		position: absolute;
    		border:0 solid transparent;
    		border-top: 3px solid red;
    		border-radius: 20px 0 0 0;
    		top: -12px;
    		left: -9px;
    		width: 12px;
    		height: 12px;
    		transform: rotate(45deg);
    	}
    	#box:last-child{
    		transform: rotate(110deg);
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    	<div id="box"></div>
    </body>
    </html>
    

    红心

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    	#box{
    		position: relative;
    		width: 100px;
    		height: 90px;
    	}
    	#box:before,#box:after{
    		position: absolute;
    		content: "";
    		left: 50px;
    		top: 0;
    		width: 50px;
    		height: 80px;
    		background-color: red;
    		border-radius: 50px 50px 0 0;
    		transform: rotate(-45deg);
    		transform-origin: 0 100%;
    	}
    	#box:after{
    		left: 0;
    		transform: rotate(45deg);
    		transform-origin: 100% 100%;
    	}
    </style>
    </head>
    <body>
    	<div id="box"></div>
    </body>
    </html>
    

    ? 到底了!原创不易,转载请注明出处。
    ? 前端的学习不是一蹴而就,不积跬步无以至千里,不积小流无以成江海。持续不断的努力才能让你我有所收获,专业的知识还得到机构去学习,培训机构的设立有其存在的必然性,你钱花对了吗?

    ? 不辜负每一份真情,不嘲笑每一个正在努力的人,力所能及的对别人施以援手,每天都要强化自己,洗去铅华才能绽放光芒。

    推荐阅读:

    小鲨鱼
    忍术!猫眼三勾玉
    召唤神龙
    旋转魔方
    拟态小象


    以上信息来源于网络,如有侵权,请联系站长删除。

    TAG:手绘 图形 CSS

  • 上一篇:蓝桥杯2020年真题:八次求和
  • 与“CSS手绘图形”相关的资讯
  • CSS @property
  • css可以实现圆形图片吗?
  • css中不同屏幕的适配怎么实现?
  • vue加载css失败怎么解决?
  • css如何实现div高度不固定垂直居中?