html——svg

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8"><!--文档的元数据,解决中文乱码-->
	<title>svg</title>
	<style type="text/css">
		svg{
			display: inline-block;
		}
	</style>
</head>
<body>
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"></circle><!---->
	</svg>
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<rect width="700px" height="100px" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)"></rect>
	</svg><br />
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<rect x="50" y="20" width="200px" height="100px" style="fill:red;stroke-width:5;stroke:pink;fill-opacity:0.1;stroke-opacity:0.9"></rect><!--opacity数值越小越透明-->
	</svg>
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<rect x="50" y="20" rx="20" ry="20" width="200px" height="100px" style="fill:red;stroke-width:5;stroke:pink;fill-opacity:0.1;stroke-opacity:0.9"></rect><!--opacity数值越小越透明-->
	</svg><br />
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<ellipse cx="150px" cy="80px" rx="100" ry="50" style="fill:red;stroke-width:5;stroke:purple;"></ellipse>
	</svg><br />
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<line x1="50" y1="10" x2="200" y2="200" style="stroke: rgb(255,0,0);stroke-width:2px"></line>
	</svg>
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<polygon points="200,10 250,50 160,80" style="fill:lime;stroke:purple;stroke-width:1px"></polygon>
	</svg><br />
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:1px;fill-rule: nonzero;"></polygon>
	</svg>
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<polygon width="400" height="300" points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5px;fill-rule: evenodd;"></polygon>
	</svg><br />
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
		<polyline cx="50" cy="10" points="0,40 40,40 40,80 80,80 80,120 120,120" style="fill:white;stroke:red;stroke-width:4"></polyline>
	</svg><br />

</body>
</html>

在这里插入图片描述
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值