html - How to use srcset image attribute? -
just came know srcset attribute. trying run without success. expect see @ least 1 image loading in when run on google chrome iphone or ipad nothing displayed.
<img srcset="img1.png 1x low-bandwidth, img2.png 2x high-bandwidth">
according w3c, srcset attribute still in draft status. means not yet recommended use because specification can still change , web browsers not expected implement already.
by way, note low-bandwidth
, high-bandwidth
not part of current draft. because it's hard find objective definition of "low" , "high" bandwidth still reasonable in ten years.
Comments
Post a Comment