This plugin adds some SVG functionality to your WordPress and uses a SVG technique that’s based on an idea by Alexey Ten.
此插件为您的WordPress添加了一些SVG功能,并使用了基于Alexey Ten的想法的SVG技术。
This way of including SVG images into HTML seems to be the one with the best combination of performance and compatibility at the moment.
将SVG图片包含到HTML中的这种方式似乎是目前性能和兼容性最好的组合。 p>
List of Features:
功能列表: p>
- Upload SVG files to your media library
- 将SVG文件上传到您的媒体库 li>
- Use SVG files via shortcode in your posts or pages
- 在帖子或页面中通过简码使用SVG文件 li>
- Set the style via CSS
- 通过CSS设置样式 li>
- Define a fallback image (usually PNG) for your SVG
- 为SVG定义后备图片(通常为PNG) li>
- Add alt-information for SEO
- 为SEO添加替代信息 li>
- Automatically change all regular images to svg images
- 自动将所有常规图像更改为svg图像 li>
ul>
Example:
示例:
[do-svg style=”margin:30px” width=”148px” height=”130px” svg_path=”http://www.blogurl.de/images/image.svg” alt_path=”http://www.blogurl
[do-svg样式=“ margin:30px”宽度=“ 148px”高度=“ 130px” svg_path =“ http://www.blogurl.de/images/image.svg” alt_path =“” http://www.blogurl
.de/images/image.png” alt=”My Other Image”]
.de / images / image.png” alt =“我的其他图片”] p>