Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
html5 新技术
Search
hugo
November 27, 2013
Programming
190
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
html5 新技术
主要介绍了html的一些新增属性和api
hugo
November 27, 2013
More Decks by hugo
See All by hugo
CSS命名及书写规范
baofen14787
0
700
移动端性能调优及16ms优化
baofen14787
1
2.3k
html5 新技术 2
baofen14787
1
150
html5 新技术 3
baofen14787
1
120
Other Decks in Programming
See All in Programming
Building a Meta Ray-Ban display app
akkeylab
0
170
今さら聞けない .NET CLI
htkym
0
200
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
120
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
19k
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
450
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
5k
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
390
MySQLとPostgreSQLって何が違うの?
akagami
0
120
typoなんかねぇよ
raspython3
0
110
React本体のコードリーディング
high_g_engineer
1
150
源内ハンズオン概要編
hideg
0
200
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
360
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
Test your architecture with Archunit
thirion
2
2.4k
Bash Introduction
62gerente
615
220k
Balancing Empowerment & Direction
lara
6
1.2k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
480
Navigating Weather and Climate Data
rabernat
0
490
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
370
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
420
Transcript
HTML5新技术(1) hugohua
data-*** 符合html5规范 高级浏览器支持 js提供dataset方法 jq提供data方法
CSS提供attr() 方法
dataset *带连字符连接的名称在使用的时候需要命名驼峰化
$(‘’).data() *data方法,页面初始化时缓存数据,后续无法修改属性值。 参考文献: http://www.learningjquery.com/2011/09/using-jquerys-data-apis
CSS attr() DEMO
Demo
datalist *扩展阅读: http://www.zhangxinxu.com/wordpress/2013/03/html5-datalist-实际应用-可行性/
download
download Download属性:表明一个资源是让用户下载的,而不是立即显示的。 Download如果存在值,则这个值是文件名。 DEMO
下载动态生成的文件 可以通过Bob创建二进制文件,然后用这个属性下载到本地。
autofocus Autofocus:页面加载时自动地获得焦点。 仅对 input、button、textarea等表单元素有效 多个autofocus存在时,作用于最后一个 DEMO
placeholder 文本框默认文字提示 默认颜色在各浏览器下表现不一致,建议通过CSS重置样式 DEMO
Context Menus Chrome暂不支持 DEMO
None
HTML5 JS API • 未完待续 • 3Q