⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svg 实例.htm

📁 SVG教程
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0047)http://www.w3school.com.cn/svg/svg_examples.asp -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>SVG 实例</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META http-equiv=Content-Language content=zh-cn>
<META content=all name=robots>
<META content=w3school.com.cn name=author>
<META content="Copyright W3school.com.cn All Rights Reserved." name=Copyright>
<META content=true name=MSSmartTagsPreventParsing>
<META http-equiv=imagetoolbar content=false><LINK href="SVG 实例_files/c1.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.4134" name=GENERATOR></HEAD>
<BODY id=xml>
<DIV id=wrapper>
<DIV id=header>
<H1><A title=点击此处,返回首页 
href="http://www.w3school.com.cn/index.html">w3school在线教程</A></H1></DIV>
<DIV id=navfirst>
<UL id=menu>
  <LI id=h><A title=HTML教程 href="http://www.w3school.com.cn/h.asp">HTML教程</A> 
  </LI>
  <LI id=x><A title=XML教程 href="http://www.w3school.com.cn/x.asp">XML教程</A> 
</LI>
  <LI id=b><A title=浏览器脚本 href="http://www.w3school.com.cn/b.asp">浏览器脚本</A> 
</LI>
  <LI id=s><A title=服务器脚本 href="http://www.w3school.com.cn/s.asp">服务器脚本</A> 
</LI>
  <LI id=d><A title="dot net教程" href="http://www.w3school.com.cn/d.asp">dot 
  net教程</A> </LI>
  <LI id=m><A title=多媒体教程 href="http://www.w3school.com.cn/m.asp">多媒体教程</A> 
</LI>
  <LI id=w><A title=建站手册 href="http://www.w3school.com.cn/w.asp">建站手册</A> 
</LI></UL></DIV>
<DIV id=navsecond>
<DIV id=course>
<H2>SVG 基础</H2>
<UL>
  <LI><A title="SVG 首页" href="http://www.w3school.com.cn/svg/index.asp">SVG 
  首页</A> 
  <LI><A title="SVG 简介" href="http://www.w3school.com.cn/svg/svg_intro.asp">SVG 
  简介</A> 
  <LI><A title="SVG 实例" 
  href="http://www.w3school.com.cn/svg/svg_example.asp">SVG 实例</A> 
  <LI><A title=在HTML文档中的SVG 
  href="http://www.w3school.com.cn/svg/svg_inhtml.asp">SVG in HTML</A> </LI></UL>
<H2>SVG 形状</H2>
<UL>
  <LI><A title="SVG 矩形" href="http://www.w3school.com.cn/svg/svg_rect.asp">SVG 
  矩形</A> 
  <LI><A title="SVG 圆形" href="http://www.w3school.com.cn/svg/svg_circle.asp">SVG 
  圆形</A> 
  <LI><A title="SVG 椭圆" 
  href="http://www.w3school.com.cn/svg/svg_ellipse.asp">SVG 椭圆</A> 
  <LI><A title="SVG 线条" href="http://www.w3school.com.cn/svg/svg_line.asp">SVG 
  线条</A> 
  <LI><A title="SVG 多边形" 
  href="http://www.w3school.com.cn/svg/svg_polygon.asp">SVG 多边形</A> 
  <LI><A title="SVG 折线" 
  href="http://www.w3school.com.cn/svg/svg_polyline.asp">SVG 折线</A> 
  <LI><A title="SVG 路径" href="http://www.w3school.com.cn/svg/svg_path.asp">SVG 
  路径</A> </LI></UL>
<H2>SVG 滤镜</H2>
<UL>
  <LI><A title="SVG 滤镜简介" 
  href="http://www.w3school.com.cn/svg/svg_filters_intro.asp">SVG 滤镜简介</A> 
  <LI><A title="SVG 高斯滤镜" 
  href="http://www.w3school.com.cn/svg/svg_filters_gaussian.asp">SVG 高斯滤镜</A> 
  </LI></UL>
<H2>SVG 渐变</H2>
<UL>
  <LI><A title="SVG 线形渐变" 
  href="http://www.w3school.com.cn/svg/svg_grad_linear.asp">SVG 线形渐变</A> 
  <LI><A title="SVG 放射渐变" 
  href="http://www.w3school.com.cn/svg/svg_grad_radial.asp">SVG 放射渐变</A> 
</LI></UL>
<H2>SVG 实例</H2>
<UL>
  <LI><A title="SVG 实例" 
  href="http://www.w3school.com.cn/svg/svg_examples.asp">SVG 实例</A> </LI></UL>
<H2>SVG 参考</H2>
<UL>
  <LI><A title="SVG 元素" 
  href="http://www.w3school.com.cn/svg/svg_reference.asp">SVG 元素</A> 
</LI></UL></DIV>
<DIV id=selected>
<H2>建站手册</H2>
<UL>
  <LI><A title=网站构建 href="http://www.w3school.com.cn/site/index.asp">网站构建</A> 
  <LI><A title=W3C href="http://www.w3school.com.cn/w3c/index.asp">万维网联盟</A> 
  <LI><A title=浏览器信息 
  href="http://www.w3school.com.cn/browsers/index.asp">浏览器信息</A> 
  <LI><A title=网站品质 href="http://www.w3school.com.cn/quality/index.asp">网站品质</A> 

  <LI><A title=语义网 href="http://www.w3school.com.cn/semweb/index.asp">语义网</A> 
  <LI><A title=职业规划 href="http://www.w3school.com.cn/careers/index.asp">职业规划</A> 

  <LI><A title=网站主机 href="http://www.w3school.com.cn/hosting/index.asp">网站主机</A> 
  </LI></UL></DIV></DIV>
<DIV id=maincontent>
<H2>SVG 实例</H2>
<DIV id=tpn>
<UL class=prenext>
  <LI class=pre><A 
  href="http://www.w3school.com.cn/svg/svg_grad_radial.asp">Previous Page</A> 
  </LI>
  <LI class=next><A href="http://www.w3school.com.cn/svg/svg_reference.asp">Next 
  Page</A> </LI></UL></DIV>
<DIV>
<H3>查看SVG文件</H3>
<P>如果没有安装 SVG 查看器,您就无法查看 SVG 文件。</P>
<P class=note><SPAN>注释:</SPAN>Firefox 1.5 和 Opera 9 对 SVG 
的支持是原生性的。假如您使用这些浏览器中的一款,就不必安装 SVG 查看器。</P>
<P><A href="http://www.adobe.com/svg/viewer/install/">从Adobe免费下载SVG查看器</A>。</P>
<H4>查看SVG源代码</H4>
<P>如需查看 SVG 源代码,请打开这些例子,然后在窗口中右键单击,选择“查看源代码”。</P></DIV>
<DIV class=example>
<H3>SVG 实例</H3>
<H4>SVG 形状</H4>
<DL>
  <DT><A href="http://www.w3school.com.cn/svg/rect1.svg">矩形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/rect2.svg">带有透明度的矩形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/rect3.svg">带有透明度的矩形 2</A> 
  <DT><A href="http://www.w3school.com.cn/svg/rect4.svg">带有圆角的矩形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/circle1.svg">圆形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/ellipse1.svg">椭圆形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/ellipse2.svg">累叠而上的三个椭圆</A> 
  <DT><A href="http://www.w3school.com.cn/svg/ellipse3.svg">两个椭圆</A> 
  <DT><A href="http://www.w3school.com.cn/svg/line1.svg">一条线</A> 
  <DT><A href="http://www.w3school.com.cn/svg/polygon1.svg">三角形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/polygon2.svg">四边形</A> 
  <DT><A href="http://www.w3school.com.cn/svg/polyline1.svg">折线</A> 
  <DT><A href="http://www.w3school.com.cn/svg/path1.svg">路径</A> 
  <DT><A href="http://www.w3school.com.cn/svg/path2.svg">螺旋</A> </DT></DL>
<H4>SVG 滤镜</H4>
<DL>
  <DT><A href="http://www.w3school.com.cn/svg/filter1.svg">feGaussianBlur 滤镜</A> 

  <DT><A href="http://www.w3school.com.cn/svg/filter2.svg">另一个feGaussianBlur 
  滤镜</A> 
  <DT><A href="http://www.w3school.com.cn/svg/feblend_1.svg">feBlend 滤镜</A> 
  <DT><A href="http://www.w3school.com.cn/svg/fecolormatrix_1.svg">feColorMatrix 
  滤镜</A> 
  <DT><A 
  href="http://www.w3school.com.cn/svg/fecomponenttransfer_1.svg">feComponentTransfer 
  滤镜</A> 
  <DT><A href="http://www.w3school.com.cn/svg/feoffset_1.svg">feOffset 滤镜</A> 
  <DT><A 
  href="http://www.w3school.com.cn/svg/femerge_1.svg">feOffset、feFlood、feComposite、feMerge以及feMergeNode</A> 

  <DT><A href="http://www.w3school.com.cn/svg/femorphology_1.svg">feMorphology 
  滤镜</A> 
  <DT><A href="http://www.w3school.com.cn/svg/filter_1.svg">滤镜 1</A> 
  <DT><A href="http://www.w3school.com.cn/svg/filter_2.svg">滤镜 2</A> 
  <DT><A href="http://www.w3school.com.cn/svg/filter_3.svg">滤镜 3</A> 
  <DT><A href="http://www.w3school.com.cn/svg/filter_4.svg">滤镜 4</A> 
  <DT><A href="http://www.w3school.com.cn/svg/filter_5.svg">滤镜 5</A> 
  <DT><A href="http://www.w3school.com.cn/svg/filter_6.svg">滤镜 6</A> </DT></DL>
<H4>SVG 渐变</H4>
<DL>
  <DT><A href="http://www.w3school.com.cn/svg/linear1.svg">线形渐变 (水平渐变)</A> 
  <DT><A href="http://www.w3school.com.cn/svg/linear3.svg">线形渐变 (垂直渐变)</A> 
  <DT><A href="http://www.w3school.com.cn/svg/radial1.svg">放射性渐变</A> 
  <DT><A href="http://www.w3school.com.cn/svg/radial2.svg">放射性渐变 2 </A></DT></DL>
<H4>SVG Misc</H4>
<DL>
  <DT><A 
  href="http://www.w3school.com.cn/svg/a_1.svg">向矩形添加一个"a"元素,这样矩形就可以作为一个超级链接了。</A> 

  <DT><A 
  href="http://www.w3school.com.cn/svg/a_2.svg">当用户在圆上面点击时,使用JavaScript创建一个元素。</A> 

  <DT><A href="http://www.w3school.com.cn/svg/animate_1.svg">重复用5秒时间淡出的矩形</A> 
  <DT><A 
  href="http://www.w3school.com.cn/svg/animate_2.svg">动态改变矩形的x、y以及width、height属性来创造出动画效果,并改变矩形的颜色</A> 

  <DT><A href="http://www.w3school.com.cn/svg/animatecolor_1.svg">会改变颜色的三个矩形</A> 

  <DT><A 
  href="http://www.w3school.com.cn/svg/animatemotion_0.svg">沿一个运动路径移动的文本</A> 
  <DT><A 
  href="http://www.w3school.com.cn/svg/animatemotion_1.svg">沿一个运动路径移动、旋转并缩放的文本</A> 

  <DT><A href="http://www.w3school.com.cn/svg/animatemotion_2.svg" 
  target=_blank>沿一个运动路径移动、旋转并缩放的文本 + 逐步放大并改变颜色的矩形</A> </DT></DL></DIV>
<DIV id=bpn>
<UL class=prenext>
  <LI class=pre><A 
  href="http://www.w3school.com.cn/svg/svg_grad_radial.asp">Previous Page</A> 
  </LI>
  <LI class=next><A href="http://www.w3school.com.cn/svg/svg_reference.asp">Next 
  Page</A> </LI></UL></DIV></DIV>
<DIV id=sidebar>
<DIV id=searchui>
<FORM id=searchform action=http://www.google.com/search method=get>
<P><LABEL for=searched_content>Search:</LABEL></P>
<P><INPUT type=hidden value=www.w3school.com.cn name=sitesearch></P>
<P><INPUT class=box id=searched_content title=在此输入搜索内容。 name=as_q> <INPUT class=button title=搜索! type=submit value=Go> </P></FORM></DIV>
<DIV id=tools>
<H5 id=tools_reference><A 
href="http://www.w3school.com.cn/svg/svg_reference.asp">SVG 参考手册</A></H5>
<H5 id=tools_example><A 
href="http://www.w3school.com.cn/example/svge_examples.asp">SVG 
实例</A></H5></DIV>
<DIV id=books></DIV></DIV>
<DIV id=footer>
<P>W3School提供的内容仅用于培训。我们不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。当使用本站时,代表您已接受了本站的使用条款和隐私条款。</P>
<P>版权所有,保留一切权利。未经书面许可,不得转载。W3School(s)简体中文版授权上海蒙信网络科技有限公司在中华人民共和国运营。</P></DIV></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -