<!-- 外部样式 -->
<link rel="stylesheet" href="common.css">
<!-- 内部样式 -->
<style>
p {font-size: 26px;}
</style>
/* 元素选择器 */
span {}
/* id选择器 */
# +id{}
/* 类选择器 */
.class{}
/* 属性选择器 */
[type="text"]{color: }
内联 》 ID选择器 》类选择器 》元素选择器
优先级一样时后面顶替前面
1、尺寸(行内元素的宽和高不生效)
width: 最大宽度max-width: 最小宽度min-width;
height: 最大高度max-height; 最小高度min-height;
background-color:背景色
background-image:url()背景图片
background-repeat:背景平铺
background-size:背景图尺寸width height; over全覆盖;contain扩展到最大尺寸