web学习记录3

HTML与CSS基础详解

文本标签

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  设置上左外边距,会改变盒子位置,设置下右,会改变其他盒子的位置

 

转载于:https://www.cnblogs.com/xihuanjiuquqiqang/p/10152014.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值