免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HTML5的结构和语义语义性的块级元素(三)2012-01-10 15:53:06 我来说两句收藏我要投稿 字体:小大asidefigure dialog我在文章和书中一直使用前两个元素。第三个元素我不经常用,它主要用于书面文本。asideaside 元素代表说明、提示、边栏、引用、附加注释等,也就是叙述主线之外的内容。例如,在developerWorks 文章中,经常会看到用表格形式编写的边栏,见代码3 用HTML 4 编写的developerWorks 边栏。以下是代码片段: .xf-valueThe .xf-value selector used here styles the inputfield value but not its label. This is actually inconsistentwith the current CSS3 draft. The example really should use the:value pseudo-class instead like so:input:value width: 20em; #ccnumber:value width: 18em #zip:value width: 12em #state:value width: 3em However, Firefox doesnt yet support this syntax.在HTML 5 中,可以按照更有意义的方式编写这个边栏,见代码4 用HTML 5 编写的developerWorks 边栏。以下是代码片段: .xf-valueThe .xf-value selector used here styles the inputfield value but not its label. This is actually inconsistentwith the current CSS3 draft. The example really should use the:value pseudo-class instead like so:input:value width: 20em; #ccnumber:value width: 18em #zip:value width: 12em #state:value width: 3em However, Firefox doesnt yet support this syntax.浏览器可以决定把这个边栏放在哪里(可能需要用一点儿CSS 代码)。figurefigure 元素代表一个块级图像,还可以包含说明。例如,在许多developerWorks 文章中,可以看到代码5 用HTML 4 编写的developerWorks 图 这样的标记其结果见图1。以下是代码片段: Figure 2. Install Mozilla XForms dialog图 1. Install Mozilla XForms dialog在 HTML 5 中,可以按照更有语义性的方式编写这个图,见代码6 用 HTML 5 编写的 developerWorks 图。以下是代码片段: Figure 2. Install Mozilla XForms dialog最重要的是,浏览器(尤其是屏幕阅读器)可以明确地将图和说明联系在一起。figure 元素不只可以显示图片。还可以使用它给audio、video、iframe、object 和embed 元素加说明。dialogdialog 元素表示几个人之间的对话。HTML 5 dt 元素可以表示讲话者,HTML 5 dd 元素可以表示讲话内容。所以,在老式浏览器中也可以以合理的方式显示对话。代码7 显示在Galileo 的 “Dialogue Concerning the Two Chief World Systems” 上的一段闻名对话。代码7. 用HTML 5 编写的Galilean 对话以下是代码片段: Simplicius According to the straight line AF,and not according to the curve, such being already excludedfor such a use.Sagredo But I should take neither of them,seeing that the straight line AF runs obliquely. I shoulddraw a line perpendicular to CD, for this would seem to meto be the shortest, as well as being unique among theinfinite number of longer and unequal ones which may bedrawn from the point A to every other point of the oppositeline CD. Salviati Your choice and the reason youadduce for it seem to me most excellent. So now we have itthat the first dimension is determined by a straight line;the second (namely, breadth) by another straight line, andnot only straight, but at right angles to that whichdetermines the length. Thus we have defined the twodimensions of a surface; that is, length and breadth. But suppose you had to determine a heightforexample, how high this platform is from the pavement downbelow there. Seeing that from any point in the platform wemay draw infinite lines, curved or straight, and all ofdifferent lengths, to the infinite points of the pavementbelow, which of al
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025河南信阳工程职业学院实训专任教师招聘2人笔试考试备考题库及答案解析
- 2026内蒙古阿拉善高新技术产业开发区教育领域紧缺人才引进10人预告(内蒙古大学专场)考试笔试参考题库附答案解析
- 2026云南昆明市教育体育系统校园招聘325人考试笔试模拟试题及答案解析
- 地质公园建设项目投标书
- 2025辽宁建筑安全员《C证》考试题库及答案
- 中药材农业产业园项目可行性研究报告
- 输油管线更新工程可行性研究报告
- 2025年航天考试历年真题及答案
- 2025年普法司法知识竞赛题库及答案
- 国家执业医师考试题库及答案2025年新版本
- 2025四川内江人和国有资产经营有限责任公司招聘2人笔试历年参考题库附带答案详解
- 2025云南昆明元朔建设发展有限公司第一批收费员招聘20人笔试历年备考题库附带答案详解2套试卷
- 四川省凉山州事业单位招聘考试《公共基础知识》真题库及答案
- 2025年文学常识高考真题及答案
- 汕尾化粪池施工方案
- 工程“四新”应用技术专题培训
- 定额〔2025〕1号文-关于发布2018版电力建设工程概预算定额2024年度价格水平调整的通知
- 葡萄酒全程质量控制
- 碘对比剂使用指引解读
- 涉及生物材料保藏的专利申相关事务
- 认识蔬菜(小学一年级)(课堂PPT)
评论
0/150
提交评论