CSS 样式
CSS 单位 -尺寸
% : 百分比
in : 英寸
cm : 厘米
mm : 毫米
pt : 磅(1pt等于1/72英寸)
px : 像素(计算机屏幕上的一个点)
em : 1em等于当前的字体尺寸,2em等于当前字体尺寸的两倍
CSS 单位 - 颜色
. rgb(x,x,x): RGB值,如 rgb(255,0,0)
. rgb(x%,x%,x%): RGB百分比值,如rgb(100%,0%,0%)
. #rrggbb : 十六进制数,如 #ff0000
. #rgb : 简写的十六进制数,如#f00
尺寸属性
. width 和 height
. overflow:当内容溢出元素框时如何处理
-- visible
-- hidden
-- scroll
-- auto
边框属性
. 简写方式
-- border:width style color;
. 单边定义
-- border-left/right/top/bottom:width style color;
. border-width
-- border-left/right/top/bottom-width
. border-style
-- border-left/right/top/bottom-style
. border-color