web学习记录

文本标签

em  strong  i  b  small  cite  q  blockquote  sup  sub  del  ins  pre  code

 文本样式

text-transform  none  capitalize  uppercase  lowercase

文本修饰

text-decoration  none  underline  overline  line-through

letter-spacig  word-spacig

对齐方式

text-align  left  right  center  justify

text-indent   em   首行缩进  负值可隐藏文本

列表标签

ul  ol  dl  

ul  li  disc  square  circle  ul{list-style:none;}  块元素

ol  li  type  1,a/A,i/I,  块元素

dl  dt  dd

CSS单位

长度单位  PX  %  em

颜色单位  不同颜色  RGB  #XXX  #FFFFFF

font-size  字体默认比设置的小一些  

font-family  

font-style  normal  italic  oblique  bold  

字体  serif  sans-serif  monospace  cursive  fantasy  

font  斜体  加粗  大小字母  无顺序要求,要求字体大小跟样式必须写,且字体在最后

行间距  不能直接设置  line-height 行高----font-size 字体大小   可以赋一个数值,1,倍行高    font:30px/50px

盒子模型  box

content  padding  border  margin

border  width  color  style  缺一不可

赋值时  4个值  上右下左  3个值  上 左右 下  2个值  上下 左右  1个值  全部

border-style  none  solid  dotted  dashed  double

border:  同时赋值四个边

padding  top上  right右  bottom下  left左  

margin  设置上左外边距,会改变盒子位置,设置下右,会改变其他盒子的位置

猜你喜欢

转载自www.cnblogs.com/xihuanjiuquqiqang/p/10152014.html