css 3 学习笔记

文本:
 
word-wrap : normal | break-word
取值:
normal:
    控制连续文本换行。
break-word:
    内容将在边界内换行。如果需要,词内换行(word-break)也会发生。

text-overflow : clip | ellipsis
取值:
clip:
    不显示省略标记(...),而是简单的裁切。
ellipsis:
    当对象内文本溢出时显示省略标记(...)

text-shadow : none | <length> none | [<shadow>, ] * <shadow> 或none | <color> [, <color> ]*

取值:
<color> :
    指定颜色。
<length> :
    由浮点数字和单位标识符组成的长度值。可为负值。指定阴影的水平延伸距离。
<opacity> :
    由浮点数字和单位标识符组成的长度值。不可为负值。 指定模糊效果的作用距离。如果你仅仅需要模糊效果,将前两
    个 length 全部设定为 0 。

选择器

E::selection : {attribute}
相关伪类: E:enabled | E:disabled | E:checked
说明:
匹配E元素中被用户选中或处于高亮状态的部分

E:not(s) : {attribute}
说明:
匹配所有不匹配简单选择符s的元素E

E:empty : {attribute}
相关伪类: E:root | E:nth-child(n) | E:nth-last-child(n) | E:nth-of-type(n) | E:nth-last-of-type(n) |
E:last-child | E:first-of-type | E:only-child | E:only-of-type
说明:
匹配没有任何子元素(包括text节点)的元素E

E[att^="val"] : {attribute}
相关伪类: E[att$="val"] | E[att*="val"]
说明:
匹配具有att属性、且值以val开头的E元素

E[att$="val"] : {attribute}
相关伪类: E[att^="val"] | E[att*="val"]
说明:
匹配具有att属性、且值以val结尾的E元素

E[att*="val"] : {attribute}
相关伪类: E[att^="val"] | E[att$="val"]
说明:
匹配具有att属性、且值中含有val的E元素

E:nth-child(n) : {attribute}
相关伪类: E:root | E:nth-last-child(n) | E:nth-of-type(n) | E:nth-last-of-type(n) | E:last-child |
E:first-of-type | E:only-child | E:only-of-type | E:empty
说明:
匹配父元素中的第n个子元素E

E:nth-last-child(n) : {attribute}
相关伪类: E:root | E:nth-child(n) | E:nth-of-type(n) | E:nth-last-of-type(n) | E:last-child |
E:first-of-type | E:only-child | E:only-of-type | E:empty
说明:
匹配父元素中的倒数第n个结构子元素E

E:nth-of-type(n) : {attribute}
相关伪类: E:root | E:nth-child(n) | E:nth-last-child(n) | E:nth-last-of-type(n) | E:last-child |
E:first-of-type | E:only-child | E:only-of-type | E:empty
说明:
匹配同类型中的第n个同级兄弟元素E

E:first-of-type : {attribute}
相关伪类: E:root | E:nth-child(n) | E:nth-last-child(n) | E:nth-of-type(n) | E:nth-last-of-type(n) |
E:last-child | E:only-child | E:only-of-type | E:empty
说明:
匹配同级兄弟元素中的第一个E元素

E:only-child : {attribute}
相关伪类: E:root | E:nth-child(n) | E:nth-last-child(n) | E:nth-of-type(n) | E:nth-last-of-type(n) |
E:last-child | E:first-of-type | E:only-of-type | E:empty
说明:
匹配属于父元素中唯一子元素的E

最新文章

  1. Bomb---hdu5934(连通图 缩点)
  2. Ubuntu系统如何查看硬件配置信息
  3. golang学习之beego框架配合easyui实现增删改查及图片上传
  4. OC11_真正的代理
  5. XML解析的例子
  6. [itint5]单词变换
  7. JSP自定义标签——简单标签(2)
  8. sql 比较不同行不同字段值
  9. [BZOJ1085] [SCOI2005] 骑士精神 (A*)
  10. HDU 5115 (杀狼,区间DP)
  11. u3d 逐个点运动,路径运动。 U3d one by one, path motion.
  12. SD从零开始51-54 信用控制范围, 信用范围数据维护, 自动信用控制, 信用控制-阻止后续功能
  13. Content-Type:几种常用数据编码格式
  14. USART相关问题
  15. final发布视频展示博客
  16. Hibernate-数据库更新操作
  17. OpenVpn的ipp.txt文件
  18. Web前端面试宝典(最新)
  19. 【Asp.Net Core】在Visual Studio 2017中使用Asp.Net Core构建Angular4应用程序
  20. 常州day7

热门文章

  1. C 枚举 相同的值
  2. nginx keepalive 高可用
  3. iFiles——苹果上最好用的文件管理器 - imsoft.cnblogs
  4. Microsoft - Get Course Order
  5. day 2克隆虚拟机器minimal需要注意的问题和制作本地yum源和常用的Linux的命令
  6. 转 MetaWeblog API 编写
  7. GridView 相同单元格合并
  8. NOSQL之MEMCACHE
  9. graphEdit
  10. 【转】每天一个linux命令(13):less 命令