如何在HTML5中嵌入.ai文件? [英] How to embed .ai files in HTML5?

查看:223
本文介绍了如何在HTML5中嵌入.ai文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以直接在HTML5中嵌入.ai文件,以便根据屏幕大小和分辨率自动渲染图像,或者我们是否需要将整个.ai文件转换为不同大小的.png然后将它们包括在内。

Is it possible to directly embed .ai files in HTML5, so that the image is rendered automatically as per the size of the screen and resolution or do we need to convert the whole .ai files into .png of different sizes and then include them within.

推荐答案

您可以将其导出为 SVG 文件,并将其嵌入您的网站。 SVG是一种所有现代浏览器都能理解的矢量格式。 Adobe Illustrator应该能够将绘图导出到SVG,因为它是一种使用非常广泛的格式。

You could export it as a SVG file, and embed that in your website. SVG is a vector format that all modern browsers understand. Adobe Illustrator should be able to export drawings to SVG, since it is a very widely used format.

由于SVG是矢量图形格式,因此它可以以任何大小渲染而且看起来仍然很好看。

Since SVG is a vector graphics format, it can be rendered at any size and still look nice and sharp.

这篇关于如何在HTML5中嵌入.ai文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆