栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > Html/CSS > CSS教程

自动编号/图片标题编号

CSS教程 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

自动编号/图片标题编号

1. 自动编号 
2. counter-reset:(h2  -1)  计数器重置h2  默认是0 设置为-1 
3. counter-increment:h2    counter-reset:h3  使h2得值增加一 重置一下 h3的值
4. h2 before( content"counter(h2)",”h2之前添加","作为 前缀
5. h3 (counter-increment:h3  counter-reset :h4   h3得值增加一 重置h4得值
6. h3 before( content:counter(h2)“ ," counter(h3)" " h2 前缀是 ,  h3的前缀是  空格 
7. h4(counter-increment(h4)  h4的值增加一
8. h4 before(content:counter(h2)”,“ counter(h3)”. “ counter(h4) "   "h2 前缀是 , h3前缀是 . h4 前缀 空格

table 常用的属性

 table 
    * 表头,thead (th) 行 tr 列td (可添加单元格里的内容)  
    *  边框边距 border-spcing
    * 边框合并 border-collapse  
    * 给边框加线  border ( solid实线 dashed 虚线 dotted 点线 )
    * 可设置宽高
    * 文本对齐text-align,centerleft right.
    * 居中用到vertical-align :top bottom center .特有
    * 在行里设置列的内容,
    * 内容所占行数 rowspan=“2",所占列数 colspan="5"。
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/243583.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号