难道文件扩展名的重要浏览器? [英] Does file extensions matter for browsers?

查看:87
本文介绍了难道文件扩展名的重要浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不要紧,如果我的名字我的图片test.jpg放在或只是试验,为观众?

Does it matter if i name my pictures "test.jpg" or just "test" for the viewers?

<img src="test.jpg" />
<img src="test" />

在我知道,但所有的浏览器这两部作品是在没有使用正确的文件扩展名的任何一点?

Both works in all browsers i know but is there any point in using the right file extension?

推荐答案

没有什么重要的是的Content-Type 头,这将会在HTTP响应服务。

No, what matters is the Content-Type header, which gets served in the HTTP response.

这篇关于难道文件扩展名的重要浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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