Files
ClassContent/历届学生/font-end-nine/每天上课/2022-06-01/笔记.txt
2024-09-27 02:06:13 +08:00

39 lines
963 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

text-decoration: none; 去除a标签的下划线
font-family
line-height 设置行高
设置单行文字的 垂直对齐, 数值和父元素高度一样
text-align: center;
设置水平方向的对其方式
注意:
line-height
text-align
div内部行内标签设置文字div内部的文字对齐
块标签 内部 块标签 要居中的时候
margin: 0 auto
font-weight 加错
letter-spacing 设置字符间距
text-shadow: x轴偏移 y轴偏移 阴影模糊度 阴影颜色; 文字阴影
box-shadow: 盒子阴影 一般给块标签设置的
border: none; 去除边框
outline: none; 去除外边框
border-radius 圆角
background-attachment: fixed; 背景图不随页面滚动
overflow: scroll; hidden 决定超过父元素的部分如何显示
float 浮动 让元素放一行
子元素设置浮动后,父元素就会没有高度,解决方案:
手动设置height
overflow: hidden;
clear: both;