shpasspass
V2EX  ›  问与答

img标签中插入图片能显示,但是后缀却没有,这是怎么办到的?

  •  
  •   shpasspass · Jun 3, 2013 · 3329 views
    This topic created in 4823 days ago, the information mentioned may be changed or developed.
    就是在html中的img标签,src=""中间加的一般都是图片地址,比如http://dasd.com/aa.jpg
    但是看到有些网站插入图片后,在源代码里并没有jpg,gif,png的后缀,却可以显示。这是怎么办到的呢?
    1 replies    1970-01-01 08:00:00 +08:00
    airyland
        1
    airyland  
       Jun 3, 2013   ❤️ 1
    了解一下MIME type
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 21:56 · PVG 05:56 · LAX 14:56 · JFK 17:56
    ♥ Do have faith in what you're doing.