CSS背景:
background-color:背景颜色
background-image: url(/i/eg_bg_03.gif);背景图片
background-repeat: repeat重复背景图像,一般是一个小图标,铺开去当做整个背景
repeat-y则表示竖向铺开
repeat-x。。。。。no-repeat表示仅显示一张
background-attachment:fixed 图像不会随页面滚动
background-position: 50px 100px;背景图片定位 (center表示居中)
缩写 background: #ff0000 url(/i/eg_bg_03.gif) no-repeat fixed center;
css文本:
letter-spacing: 20px 字符间距
line-height:90% 行间距
text-align: center,left,right 对齐方式
text-decoration: underline 文本下加下划线
white-space: nowrap不换行
word-spacing:单词间距
css字体
font-family:字体
font-size:大小
font-style:italic斜体
font-weight: bold 粗细
css边框
border-style:solid
border-width: 5px
border-color: #0000ff
border-top-width: thin
外边距margin-left: 2cm
内边距padding-bottom:
ul无序列表 ol有序列表
list-style-image: url('/i/eg_arrow.gif') 用图像作为列表的标记
css表格
table-layout: automatic 自适应
(fixed 固定)
css内联样式表:
<style type="text/css">
body
{
background-color: yellow
}
</style>