css 层叠样式表或级联样式表
设置文本样式的内容 图片的外形 版面的布局
<head>
<style>
选择器{ css属性值} </style>
</head>
font-size 字体大小 像素值 如 font-size:12px;基础选择器 标签选择器 类选择器 id选择器
类选择器 .类名 class=“类名”
color 文字颜色
background-color 背景颜色
font-size 字体大小
多类名class=“值 值”
id选择器#one唯一元素设置
通配符选择器 * 选定所有标签
font-family 定义文本的字体类性 如;微软雅黑font-hright 高
font-weight 字体粗细
normal 正常粗细=400bold 粗体=700
font-style 字体样式 如:倾斜字体
复合属性写法 font:italic 700 16px “microsoft yahei”
text-aligh 文本对齐
lift 左对齐
center 居中
right 右对齐
text-decoration文本装饰 none 没有下划线 underline 下划线
line-thyough 删除线
overline 上划线
text-indent 段落的首行缩进 em 文字当前的像素大小 text-indent:2em;
&ensp 半角空格
&emsp 全角空格
line-height 行间距
css引入方式 link rel="stylesheet"href="css文件路径"
chrome调试工具浏览器 f12或右键检查 elements 元素