对齐方式:
text-align 对其方式
1.center 剧中
2.left 左对齐
3.right 右对齐
4.justify 两端对齐
line-height:行高
text-indent: 60px; 首行缩进
/* text-decoration: none;
用于清除a标签的默认下划线
显示 a:hover
* 定义文本下的一条线 */
/* text-decoration: underline; */
/* 定义文本上的一条线 */
/* text-decoration: overline; */
line-height: 80px;
/* 定义穿过文本的一条线(删除线 s或del 标签同样的效果) */
text-decoration: line-through;
}
/* 定义每个单词以大写字母开头 */
/* text-transform: capitalize; */
/* 全部字母都大写 */
/* text-transform: uppercase; */
/* 全部字母都小写 */
/* text-transform: lowercase; */
二.背景
定义背景颜色 */
/* background-color: aquamarine; */
/* 定义背景图片 */
/* background-image: url(./img/a.jpg); */
/* 定义背景图片平铺方式 */
/* background-repeat: no-repeat; */
/* 定义背景图片大小 css3新增属性 */
/* background-size: 100% 100%; */
行内元素 span a
行内块元素 img 表单元素(input、select、textarea)
块级元素 div p h1-h6 ul li hr br
/* display:
inline-block: 设置为行内块元素,宽高生效,不独占一行
block: 设置为块级元素 ,宽高生效,独占一行
inline: 设置为行内元素,宽高不生效
none:隐藏
*/
/* display: inline; */
三.盒子模型
/* 内边距 */
/* padding: 10px; */
/* padding-top: 20px;
padding-bottom: 40px;
padding-left: 50px;
padding-right: 30px; */
/* 外间距 */
/* margin: 10px; */
/* 简写 */
/* 第一个值是 上下 第二个值是 左右 */
/* padding: 10px 20px; */
/* 上 左右 下 */
/* padding: 10px 20px 30px; */
/* 上 右 下 左 */
padding: 10px 20px 30px 40px;
height: 0; */
/* 宽度 样式 颜色 */
/* 样式:
solid 实线
dashed 虚线
*/
/* 颜色
transparent: 透明色
*/
/* 设置四边边框 */
border: 10px dashed red;
/* 单独设置下边框 */
border-bottom: 10px solid red;
/* 单独设置下边框颜色 */
border-bottom-color: aqua;
px固定值 设置小圆角
50% 设置圆形
*/
/* border-radius: 50%; */