c# 浏览器demo html5_HTML5基础-新增标签+新增属性+布局案例

html5中常用的结构标签

article 文章

header 头部

nav 导航

section 区域

aside 侧边栏

hgroup 区块的相关信息

figure 定义一组内容及标题

figcaption 定义figure元素的标题

footer 底部

dialog 对话框

使用习惯:

header/section/footer > aside/article/figure/hgroup/nav > div


embed可插入flash文件,但flash已经逐渐被淘汰,不建议使用


meter状态标签,可以定义电压

optimum是标准状态

low与high之间呈现绿色,其余呈现黄色

自动计算百分比

75%

有步长的进度条

不断加载的进度条

datalist为input定义下拉列表

6bf3a73b20f8901314ed290d0b865834.gif
    demoiphonesamsunghuaweioppohtc
6bf3a73b20f8901314ed290d0b865834.gif
b78913aa78bc90f32b1fc016cd3aec73.png

details定义元素的详细内容,配合summary

6bf3a73b20f8901314ed290d0b865834.gif
    demoHTML5

HTML5是构建Web内容的一种语言描述方式。HTML5是互联网的下一代标准,是构建以及呈现互联网内容的一种语言方式.被认为是互联网的核心技术之一。HTML产生于1990年,1997年HTML4成为互联网标准,并广泛应用于互联网应用的开发。HTML5是Web中核心语言HTML的规范,用户使用任何手段进行网页浏览时看到的内容原本都是HTML格式的,在浏览器中通过一些技术处理将其转换成为了可识别的信息。HTML5在从前HTML4.01的基础上进行了一定的改进,虽然技术人员在开发过程中可能不会将这些新技术投入应用,但是对于该种技术的新特性,网站开发技术人员是必须要有所了解的。 [1-2]

6bf3a73b20f8901314ed290d0b865834.gif
26708e20663519a07b9533ada62fb1dc.png

ruby和rt进行拼音的注释

6bf3a73b20f8901314ed290d0b865834.gif
    demo    我们来夼kuang一个话题
6bf3a73b20f8901314ed290d0b865834.gif
da9c66544ec6c150f76f55e0b76eb79a.png

兼容浏览器的写法:

6bf3a73b20f8901314ed290d0b865834.gif
    demo    我们来夼(Kuang)一个话题
6bf3a73b20f8901314ed290d0b865834.gif

mark黄色选中效果

6bf3a73b20f8901314ed290d0b865834.gif
    demo

妈妈叫我回家的时候顺路买一盒牛奶,需要很新鲜的那种。

6bf3a73b20f8901314ed290d0b865834.gif
1c836f0cd6a28046b8b80602c2a17cf7.png

output表单计算

6bf3a73b20f8901314ed290d0b865834.gif
    demo        *        =        
6bf3a73b20f8901314ed290d0b865834.gif
898b54f2c171523327f7f71bf3c5a416.png

date pickers在移动端效果比较好

week兼容性不好

datetime兼容性不好,推荐用datetime-local

time用来设置时间(小时和分钟);

month用来设置年和月;

date用来设置年月日;

datetime用来设置年月日和时间;

6bf3a73b20f8901314ed290d0b865834.gif
    demo    email:
url:
tel:
number:
date:
month:
week:
time:
datetime:
datetime-local:
range:
search:
color:
6bf3a73b20f8901314ed290d0b865834.gif
0ca7be50c03bdd5483b5a468d3876873.png

autocomplete属性规定form或input域拥有自动完成功能,该属性适用于

标签和标签

autofocus自动获取焦点

multiple多选,适用于email和file,email中不同邮箱用,隔开

6bf3a73b20f8901314ed290d0b865834.gif
    demo        
6bf3a73b20f8901314ed290d0b865834.gif
dd69ab7e87287e55022620ced8969689.png

标签中,sizes属性可以规定被链接资源的尺寸的大小

6bf3a73b20f8901314ed290d0b865834.gif
    demo
6bf3a73b20f8901314ed290d0b865834.gif

script:

defer 页面已完成加载后再执行脚本

async 一旦脚本可用,则异步执行

6bf3a73b20f8901314ed290d0b865834.gif
    demo
6bf3a73b20f8901314ed290d0b865834.gif

ol有序列表倒序

6bf3a73b20f8901314ed290d0b865834.gif
Ol
Html Html5 Css Css3 JavaScript
6bf3a73b20f8901314ed290d0b865834.gif
007bb6b62ca7888019d9089acc0ba80c.png

html页面布局demo:

6bf3a73b20f8901314ed290d0b865834.gif
demo.html----------------------------------------html5
Home Course Actual Plan FAQ Notes

Recent Course

Hyper Text Markup Language HTML is the standard markup language used to create web pages and its elements form the building blocks of all websites. Cascading Style Sheets Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents. JavaScript JavaScript is a high-level, dynamic, untyped, and interpreted programming language. AngularJS AngularJS is an open-source web application framework mainly maintained by Google and by a community of individuals and...

Welcome to Massive Open Online Course!

We provide the latest knowledge to help you cope with the changing world!

We hope that all the students who love the Internet can be more convenient access to learning resources, using the Internet thinking to change our learning.

Focus on IT skills education MOOC, consistent with the development trend of the Internet down to earth's MOOC. We are free, we only teach useful, we concentrate on education.

Copyright © 2019 test.com All Rights Reserved.

6bf3a73b20f8901314ed290d0b865834.gif
6bf3a73b20f8901314ed290d0b865834.gif
style.css------------------------------------------/* All tag */* { font-family: Arial; font-size: 14px; margin: 0; padding: 0; border: none; }a { text-decoration: none; }ul { list-style: none; }/* header */header { position: relative; height: 80px; background: #000; }header:after { position: absolute; bottom: 0; left: 0; width: 100%; height: 7px; content: ''; background: #d6d6d6; }header > .container { position: relative; z-index: 1; width: 1200px; margin: 0 auto; }header > .container > a { display: block; float: left; margin: 5px 25px; }header > .container > nav { float: right; }/* nav */nav > a { font-size: 24px; line-height: 73px; display: block; float: left; width: 110px; height: 73px; text-align: center; color: #fff; }nav > a:nth-child(1) { background: #433b90; }nav > a:nth-child(2) { background: #017fcb; }nav > a:nth-child(3) { background: #78b917; }nav > a:nth-child(4) { background: #feb800; }nav > a:nth-child(5) { background: #f27c01; }nav > a:nth-child(6) { background: #d40112; }nav > a:hover,nav > a.active { padding-bottom: 7px; }/* banner */.banner { position: relative; background: #eaeaea; }.banner:after { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; content: ''; background: #d6d6d6; }.banner > ul { position: relative; width: 1490px; height: 538px; margin: 0 auto; padding-top: 10px; }.banner > ul > li { position: absolute; width: 610px; height: 300px; overflow: hidden; }.banner > ul > li.active { z-index: 2; top: 37px; right: 0; left: 0; width: 960px; height: 460px; margin: auto; border: 1px solid #fff; box-shadow: 0 30px 140px 22px rgba(0, 0, 0, .35); }.banner > ul > li.left { z-index: 1; top: 0; bottom: 0; left: 0; margin: auto; box-shadow: 0 3px 7px 0 rgba(0, 0, 0, .35); }.banner > ul > li.right { z-index: 1; top: 0; right: 0; bottom: 0; margin: auto; box-shadow: 0 3px 7px 0 rgba(0, 0, 0, .35); }.banner > ul > li > img { position: absolute; left: -30%; height: 100%; }/* main */.main { position: relative; width: 1200px; height: 473px; margin: 34px auto 0; }.main h1 { font-size: 30px; font-weight: lighter; margin-bottom: 23px; }.main h1 > samp { font-size: 30px; color: #7c7c7c; }.main > aside { float: left; width: 450px; }.main > aside > dl { position: relative; display: block; height: 74px; margin-bottom: 17px; }.main > aside > dl > dt { position: absolute; top: -1px; left: 92px; font-size: 16px; font-weight: bold; line-height: 16px; text-decoration: underline; }.main > aside > dl > dd:first-of-type { position: absolute; left: 0; }.main > aside > dl > dd:last-of-type { position: absolute; top: 20px; left: 90px; }.main > article { float: right; width: 720px; overflow: hidden; }.main > article > p,.main > article > img { margin-bottom: 20px; }/* footer */footer { position: relative; background: #000; }footer:before { position: absolute; z-index: -1; top: -6px; left: 0; width: 100%; height: 6px; content: ''; background: #d6d6d6; }footer > .container { width: 1200px; height: 64px; margin: 0 auto; }footer > .container > p { line-height: 64px; float: left; color: #fff; }footer > .container > span { float: right; margin: 14px 40px; }footer > .container > span > img { margin-left: 4px; opacity: .7; }footer > .container > span > img:hover { opacity: 1; cursor: pointer; }
6bf3a73b20f8901314ed290d0b865834.gif
2e4717a98268aa6f7ef632b6b4b3b464.png

html页面布局demo2:

6bf3a73b20f8901314ed290d0b865834.gif
    html

商品管理评价管理咨询管理全部订单已完成订单待处理订单今日物流月考核季度考核年度考核

全部订单 查询: 至 宝贝信息 订单数量 单价 买家 下单时间 实付款 订单操作 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019新款个性男女潮牌&暮春之行文化衫 2 120 小明 2019-2-21 21:54 240 待付款 2019-12-29 ©test.com
6bf3a73b20f8901314ed290d0b865834.gif
6bf3a73b20f8901314ed290d0b865834.gif
demo.css-----------------------------------*{margin:0;padding:0;}table{width:100%;background-color: #fff;}#outer-table{background-color: #abcdef;}#outer-table tfoot td{text-align:center;height:50px;line-height: 50px;}#outer-table img{width: 150px;margin-left: 10px;}.left-p{margin-left:10px;margin-top:-250px;}.left-p span{line-height:2em;}.inner-table{border:2px solid #ccc;}.inner-table tr td{padding:10px;}#order tr td{text-align:center;}#order tr td img{width:50px;}
6bf3a73b20f8901314ed290d0b865834.gif
16998d22d916281514ce5d1937816c4d.png
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值