Polyfill to allow different figcaptions for different s within

3997
    


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

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

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

下载APP
免费下载 ×

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

下载APP 免费下载
下载 ×

下载APP,资源永久免费


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

免费下载 ×

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

免费获取

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


picturecaption Prolyfill to allow different figcaptions and alt text to be defined for different tags within Problem There is currently no way of defining different captions and alt text for the different images defined for the element, should the need arise. Solution This prolyfill suggests a method of solving this by allowing multiple
tags, by using the aria-labelledby attribute on the and tags elements to identify the related
. Additionally, a data-alt attribute on the tag allows different alt text per source image. For example: < figure > < picture > < source srcset = " images/city-medium.jpg " media = " (min-width: 800px) " data-alt = " A view of the French town of Saumur, with its medieval castle looking down upon the town with church spire in the right foreground " aria-labelledby = " town-caption " > < img src = " images/castle.jpg " alt = " The medieval castle in Saumur, France " aria-labelledby = " default-caption " > < figcaption id = " town-caption " >The town of Saumur in France < figcaption id = " default-caption " >The medieval castle in Saumur, France Usage Simple include the picturecaption.min.js (or picturecaption.js ) file at the end of your HTML file, before the closing tag. Known Issues Its not very stable at the moment as this is the first quick and dirty implementaion of this idea to show how it might work. Its not been wildely tested yet Only works when run on a webserver


免费下载 ×

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

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

演示

×
登录 ×


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

作者联系方式

×

向作者索要->