SVG 绘制微信订阅号icon

效果

代码

cpp 复制代码
<!DOCTYPE html>
<html>
<body>

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600">
  <rect x="0" y="0" rx="0" ry="0" width="600" height="600" style="fill:#1677D2;stroke:black;stroke-width:0;opacity:1" />
  <rect x="140" y="120" rx="40" ry="40" width="320" height="360" style="fill:#fff;stroke:black;stroke-width:0;opacity:1" />
  <circle cx="200" cy="200" r="28" stroke="#fff" stroke-width="0" fill="#1677D2"/>
  <rect x="180" y="280" width="180" height="16" style="fill:#1677D2;stroke-width:0;stroke:rgb(0,0,0)"/>
  <rect x="180" y="320" width="120" height="16" style="fill:#1677D2;stroke-width:0;stroke:rgb(0,0,0)"/>
  <rect x="180" y="360" width="120" height="16" style="fill:#1677D2;stroke-width:0;stroke:rgb(0,0,0)"/>
</svg>

</body>
</html>
相关推荐
张元清4 小时前
React Observer Hooks:7 种监听 DOM 而不写样板代码的方式
前端·javascript·面试
竹林8185 小时前
Next.js + wagmi v2 踩坑实录:开发 NFT 交易市场时,我如何处理离线签名和链下元数据
javascript·next.js
前端Hardy5 小时前
谁还没⽤过shadcn/ui?114k+星标,不装NPM包,前端组件自由终于实现了
前端·javascript·vue.js
猪猪聪明_V5 小时前
前端码农的本地项目启动器
前端·javascript
暗不需求6 小时前
前端性能优化 防抖与节流完全指南:从原理到最佳实践
前端·javascript·面试
@大迁世界6 小时前
45.什么是内联条件表达式(inline conditional expressions)?在事件处理里怎么用?
开发语言·前端·javascript·react.js·ecmascript
我胖虎不答应!!6 小时前
Three.js开发思想笔记
javascript·笔记·three.js
一颗趴菜6 小时前
微信小程序如何去下载PDF呢
前端·javascript
zithern_juejin7 小时前
JS深拷贝与浅拷贝
javascript
前端毕业班8 小时前
前端"枚举"管理指南
前端·javascript