html5和css3新特性
来源:互联网 发布:麦肯锡7s模型知乎 编辑:程序博客网 时间:2024/04/29 11:10
1易用简洁
脚本和连接无需type
html5新增加的一些标签和特性如下:
<span style="font-size:24px;">1.无需写type,脚本和连接2.新增加标签<header/><footer/> <hgroup/> 标记元素mark<mark>高亮显示</mark>audio video <video preload><video prelod controls>如下figure:<figure> <img src="1.jpg" alt="关于" width="100" height="300"> <figcaption> <p>这是一些有图片</p> </figcaption> </figure>input新增属性:placeholder required autofocus新增正则表达式在input中<form action="" method="post"> <input type="text" name="username" id="username" placeholder="4<>10" pattern="[A-Za-z]{4,10}"> <button type="submit">提交</button></form></span>2.css新增属性选择器和伪类选择器
E[att^="val"]{} E[att$="val"]{} E[att*="val"] ^值以val开头 结构性伪类E:nth-child(n)等等UI元素伪类选择器:E:enabled E:disabled E:checked E:selected<style type="text/css"> table{ table-layout: fixed; empty-cells: show; border-collapse: collapse; } tr:nth-child(even){ background-color: #FF9900; } tr:nth-child(odd){ background-color: #0099FF; } </style>3.
text-shadow: 5px 5px 5px #FF0000; 文本阴影 水平、垂直、模糊的距离、阴影的颜色{font: font-style font-variant font-weight font-size font-family}font-variant是字体的变形font-style:normal oblique italictext-decoration 下划线 等letter-spacing:1ex 字符间距text-align: left;//文本对齐方式list-style-type:disc;//列表样式text-indent: 2em;//段落首行缩进实现省略p{ width:30px; white-space: nowrap;//禁止换行 overflow: hidden; //禁止文本益处 text-overflow: ellipsis; }
0 0
- html5和css3新特性
- css3和html5新特性
- 什么是HTML5和CSS3?HTML5和CSS3的新特性
- css3+html5新特性
- HTML5和CSS3中的交互新特性
- HTML5和CSS3新特性一览
- html5 css3表单新特性
- HTML5 与 CSS3 新特性
- 思维导图:HTML5和CSS3新特性
- 使用Modernizr探测HTML5/CSS3新特性
- HTML5 & CSS3的新交互特性
- 使用Modernizr探测HTML5/CSS3新特性
- HTML5初探-CSS3新特性小示例
- HTML5 & CSS3的新交互特性
- 使用Modernizr探测HTML5/CSS3新特性
- 使用Modernizr探测HTML5/CSS3新特性
- 使用Modernizr探测HTML5/CSS3新特性
- 使用Modernizr探测HTML5/CSS3新特性
- Codeforces Round #339 (Div. 2) (B 模拟)
- Dplasma调度方式—— DAGUE_SCHEDULER_GD(Global Dequeues)
- spring mvc打印信息
- sql还原一直提示正在还原问题
- linux, configure --prefix=/有什么用
- html5和css3新特性
- python 列表函数
- elasticsearch搜索 方案 浅析
- ECharts3进行中
- android 模拟listview多线程下载进度条显示不干扰
- opencv中Mat里面depth,dims,channels,step,data,elemSize和数据地址计算的理解 (转)
- 破解游戏的反调试
- tcpdump使用技巧
- nginx upstream的几种配置方式