CSS样式大全(网络收集整理)

  1. CSS样式大全(网络收集整理
  2. 字体属性:(font)
  3. 大小 {font-size: x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD
  4. 样式 {font-style: oblique;}(偏斜体) italic;(斜体) normal;(正常)
  5. 行高 {line-height: normal;}(正常) 单位:PX、PD、EM
  6. 粗细 {font-weight: bold;}(粗体) lighter;(细体) normal;(正常)
  7. 变体 {font-variant: small-caps;}(小型大写字母) normal;(正常)
  8. 大小写 {text-transform: capitalize;}(首字母大写) uppercase;(大写) lowercase;(小写) none;(无)
  9. 修饰 {text-decoration: underline;}(下划线) overline;(上划线) line-through;(删除线) blink;(闪烁)
  10. 常用字体: (font-family)
  11. "Courier New", Courier, monospace, "Times New Roman", Times, serif, Arial, Helvetica, sans-serif, Verdana
  12. 背景属性: (background)
  13. 色彩 {background-color: #FFFFFF;}
  14. 图片 {background-image: url();}
  15. 重复 {background-repeat: no-repeat;}
  16. 滚动 {background-attachment: fixed;}(固定) scroll;(滚动)
  17. 位置 {background-position: left;}(水平) top(垂直);
  18. 简写方法 {background:#000 url(..) repeat fixed left top;} /*简写·这个在阅读代码中经常出现,要认真的研究*/
  19. 区块属性: (Block) /*这个属性第一次认识,要多多研究*/
  20. 字间距 {letter-spacing: normal;} 数值 /*这个属性似乎有用,多实践下*/
  21. 对齐 {text-align: justify;}(两端对齐) left;(左对齐) right;(右对齐) center;(居中)
  22. 缩进 {text-indent: 数值px;}
  23. 垂直对齐 {vertical-align: baseline;}(基线) sub;(下标) super;(下标) top; text-top; middle; bottom; text-bottom;
  24. 词间距word-spacing: normal; 数值
  25. 空格white-space: pre;(保留) nowrap;(不换行)
  26. 显示 {display:block;}(块) inline;(内嵌) list-item;(列表项) run-in;(追加部分) compact;(紧凑) marker;(标记) table; inline-table; table-raw-group; table-header-group; table-footer-group; table-raw; table-column-group; table-column; table-cell; table-caption;(表格标题) /*display 属性的了解很模糊*/
  27. 方框属性: (Box)
  28. width:; height:; float:; clear:both; margin:; padding:; 顺序:上右下左
  29. 边框属性: (Border)
  30. border-style: dotted;(点线) dashed;(虚线) solid; double;(双线) groove;(槽线) ridge;(脊状) inset;(凹陷) outset;
  31. border-width:; 边框宽度
  32. border-color:#;
  33. 简写方法border:width style color; /*简写*/
  34. 列表属性: (List-style)
  35. 类型list-style-type: disc;(圆点) circle;(圆圈) square;(方块) decimal;(数字) lower-roman;(小罗码数字) upper-roman; lower-alpha; upper-alpha;
  36. 位置list-style-position: outside;(外) inside;
  37. 图像list-style-image: url(..);
  38. 定位属性: (Position)
  39. Position: absolute; relative; static;
  • 2
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值