PICTURE element polyfill with support back to IE9, fallback to IE8

3997
    


来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长


PictureTime A shot at a responsive images strategy that can be used today, it mimics the proposed picture element . Of course this is subject to change. This takes much from Scott Jehls picturefill polyfill, but with the actual element. Note: PictureTime includes (externally) the matchMedia polyfill which makes matchMedia work in media-query -supporting browsers that dont have matchMedia , or at least allows media types to be tested in most any browser. matchMedia and the matchMedia polyfill are not required for picturefill to work, but they are required to support the media attributes on picture source elements. Markup pattern and explanation Mark up your responsive images like this. Redundancy in commented source is for IE9, as it wont read the innertext otherwise. Also, currently the fallback IMG is left in place for IE8. < picture alt = " Photo: Tiger in tall grass " /> < source media = " (min-width: 900px) " srcset = " external/imgs/large.jpg 1x, external/imgs/largeplus.jpg 2x " /> < source media = " (min-width: 700px) " srcset = " external/imgs/medium.jpg 1x, external/imgs/mediumplus.jpg 2x " /> < source srcset = " external/imgs/small.jpg 1x, external/imgs/smallplus.jpg 2x " > < img src = " external/imgs/medium.jpg " /> PictureTime will automatically watch your picture elements, so if you programatically change source child element or a src attribute, pictureTime will notice that something has changed and run itself to keep the photos fresh. By default, pictureTime watches the photos on the page twice a second.


免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
				暂无来源信息			 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->