字体属性和文本属性总结:
字体属性
1.字体
font-family: "微软雅黑","宋体",...;
2.字体大小
font-size: 20px;
像素单位: px,em,rem
px: 绝对单位。 一旦设置了值,不管网页如何变化始终如一
em:相对单位。当前某块区域的字体大小,比如给p标签设置了字体大小20px,那么1em= 20px;
rem:相对单位 主要应用于移动端
3.字体颜色
color: red
颜色表示法:
- 单词表示法 red green yellow purple.
- rgb()表示法
+ rgba() a:alpha 表示透明度
- 十六进制表示法
+ #ff6700
4.字体样式
font-style
normal : 默认的字体
italic:斜体
5.字体粗细
font-weight:
bold:粗的字体
100~900
400表示默认
文本属性:
1.文本修饰
text-decoration
underline 下划线
none 无线
overline 上划线
line-through 删除线
2.文本缩进
text-indent
单位建议使用em
3.行高
行与行之间的距离
line-height
px,em,rem
4.中文字间距/单词间距
letter-spacing
word-spacing
5.文本对齐方式
text-align
left
right
center 使用最多
没有合适的资源?快使用搜索试试~ 我知道了~
Web开发之CSS篇.zip
共73个文件
html:49个
png:11个
css:7个
需积分: 0 0 下载量 199 浏览量
2023-08-22
15:59:45
上传
评论
收藏 731KB ZIP 举报
温馨提示
Web开发之CSS篇.zip
资源推荐
资源详情
资源评论
收起资源包目录
Web开发之CSS篇.zip (73个子文件)
前端Web开发基础-CSS篇
.DS_Store 6KB
common_appearance.html 397B
position_fixed.html 2KB
css_weight_deep.html 952B
!important.html 237B
border.html 1KB
display.html 547B
display_demo.html 622B
basic_selector.html 902B
fixed_header.html 10KB
margin.html 702B
overflow.html 1KB
BFC.html 2KB
position_absolute.html 1KB
clear_default_style.html 347B
index4.html 271B
tag_sort.html 1KB
bgc_attr.html 846B
mi_MIUI_bgI_demo.html 486B
float_attr.html 852B
box_center.html 521B
CSS_Sprite.html 691B
selector_ummary.txt 1KB
index2.html 332B
block_center.html 1KB
float_destory.html 608B
box_model.html 350B
advanced_seletor1.html 240B
child-absolute_father-relative.html 3KB
text_attribute.html 1KB
mi_header.html 2KB
CSS_Sprite_taobao_list.html 2KB
float_text_around.html 1KB
advanced_selector.html 485B
clear_float_overflow.html 846B
css
special.css 62B
reset.css 143B
advanced_selector.css 223B
advanced_seletor2.css 394B
base.css 19B
common_class.css 207B
index.css 197B
common_class.html 296B
border-shadow.html 410B
layout.html 1KB
font_attribute.html 361B
index.html 202B
position_relative.html 686B
z-index.html 863B
padding.html 612B
index3.html 463B
images
index01.jpeg 17KB
scholl_flower.jpeg 10KB
02.png 2KB
3.png 2KB
taobao_list.png 7KB
logo.png 742B
index02.jpeg 27KB
01.png 1KB
03.png 2KB
1.png 1KB
5.png 1KB
4.png 2KB
MIUI.png 627KB
2.png 2KB
demo.html 625B
text_font_summary.txt 2KB
position.html 267B
css_weight.html 395B
border_attr.html 520B
inline_center.html 587B
clear_float.html 1KB
special.html 221B
共 73 条
- 1
资源评论
Aestivsted
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功