svg defs 进行定义 引用
生活随笔
收集整理的這篇文章主要介紹了
svg defs 进行定义 引用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
svg defs 進行定義 引用:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%String path = request.getContextPath();String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> <!DOCTYPE html> <html> <head> <base href="<%=basePath%>"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Title</title> </head> <body> <svg width="240px" height="240px" xmlnx="http://www.w3.org/2000/svg" ><defs><g id="house" style="stroke:black"><rect x="0" y="41" width="60" height="60"/><polyline points="0 41,30 0,60 41"/><polyline points="30 101,30 71,44 71,44 101"/></g><rect id="rect01" x="0" y="0" width="10" height="10" /></defs><use xlink:href="#house" x="0" y="0" style="fill:#ccffcc;" /><use xlink:href="#house" x="120" y="0" style="fill:#99f;" /><use xlink:href="#house" x="65" y="105" style="fill:#c00;" /><use xlink:href="#rect01" x="0" y="130" /> </svg> </body> </html>?
轉載于:https://www.cnblogs.com/stono/p/5019211.html
總結
以上是生活随笔為你收集整理的svg defs 进行定义 引用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 最新CPC客户端安装教程,亲试有效
- 下一篇: 经典数据结构视频教程下载 (清华大学 严