I know this question might be more opinion based, but there has to be a reason for said opinion. It seems like a simpler way to approach web development.
Let's say I did a mock-up for a website with two main columns of content. Now, in terms of translating this into html/css, I'll have to start from sratch, with separating those two columns into two divs, then putting content into those two divs (Sometimes alot of content depending on the aim of the site) and then using css to position each of those divs on left and right and then positioning the individual content in those divs.
Wouldn't it just be best to separate those two columns from your markup, export them as svg/jpg files and then create the two divs and link the images into those two divs? It would just take floating the images on either left/right to mimic the markup.
I'll have an image to explain what I'm talking up just in case some are still confused.
- 积分
0 - 话题
0 - 评论
3203 - 注册排名
2692
作为在为企业建立网站的代理商中工作的人,这些原因是:
1响应性:好的,您的网站在台式机上可能看起来不错,但是当有人在移动设备上输入时会怎样?他们会看到您网站的缩小版本,他们可能会更倾向于离开。
2 SEO:搜索引擎将无法理解您网站的内容,因为所有内容都将显示在图像中。
3可访问性屏幕阅读器上的用户将无法与您的网站进行交互,因为所有屏幕阅读器都依靠语义HTML来解析内容。
4性能如果您的页面站点的内容和功能相对较小,则与HTML版本相比,下载图像可能需要更长的时间。
不,它限制了可访问性和功能。图片中的文字无法突出显示或说出。它为不同的尺寸布局创建了问题。而且,用户容易分辨是否存在与实际内容相反的图像。简而言之,这是不值得的,因为您最终还是被迫替换了它。
是的,这很糟糕。它不会做出响应,无法访问,并且不会被Google等搜索引擎读取。只是不要这样做。
因此,这不是基于意见的问题:
将图像用于所有事物的问题
使用HTML和CSS的好处:
alt
tag but HTML is semantically richer compare to the image人们可以继续思考许多这样的原因
但是是的,如果您希望您的网站像图像一样超静态,并且您不希望任何用户交互,那么也许可以使用图像来实现