当前位置:网站首页>文本样式这一篇文章就够了
文本样式这一篇文章就够了
2022-08-05 05:25:00 【Y-琼眸】
目录
7.text-shadow:h-shadow v-shadow blur color; 设置文本的阴影
8.box-shadow:h-shadow v-shadow blur color; 设置盒子的阴影
1.text-transform 可以设置文本大小写
可选属性值:
none 默认值
uppercase 文本大写
lowercase 文本小写
capitalize 首字母大写
2.text-decoration 可以设置文本的修饰
可选属性值:
none 默认值
underline 下划线
overline 上划线
line-through 删除线
3.letter-spacing 可以指定字符间距
word-spacing 可以指定单词间距
可选属性值:
直接加 XXpx
4.text-align 用于设置文本对齐方式
可选属性值:
center 文本居中
left 文本向左对齐
right 右对齐
justify 两端对齐
5.text-indent 设置首行缩进
可选属性值:
直接加 XXpx
XXem (向后缩进XX字符)
6.white-space 设置网页如何处理空白
text-overflow 文本溢出包含元素时发生的事
p{
background-color: aqua;
width: 200px; /*设置宽度*/
white-space: nowrap; /*设置空白不换行*/
text-overflow: ellipsis; /*设置省略号*/
overflow: hidden; /*裁剪溢出/多余部分*/
}
7.text-shadow:h-shadow v-shadow blur color; 设置文本的阴影
h-shadow 阴影水平位移距离 正值向右 负值向左
v-shadow 阴影垂直位移距离 正值向下 负值向上
blur 阴影的模糊半径 默认是0
color 阴影的颜色 默认是黑色 (颜色可以用rgba,可以调透明度)
8.box-shadow:h-shadow v-shadow blur color; 设置盒子的阴影
h-shadow 阴影水平位移距离 正值向右 负值向左
v-shadow 阴影垂直位移距离 正值向下 负值向上
blur 阴影的模糊半径 默认是0
color 阴影的颜色 默认是字体的颜色 (颜色可以用rgba,可以调透明度)
9.vertical-align 设置元素垂直对齐方式
这个非常重要!
可选属性值:
baseline 基线对齐 沿着字母x最下方对齐
top 顶部对齐
bottom 底部对齐
middle 居中对齐
功能:
1、设置元素垂直对齐方式 只针对图片文字表格,不针对块元素
2、解决图片三像素问题
图片三像素问题在我上一篇文章中有详细介绍
边栏推荐
- Drools规则引擎快速入门(一)
- docker部署完mysql无法连接
- Four ways to obtain Class objects through reflection
- 原生JS带你了解数组方法实现及使用
- 关于Antd的Affix突然不好用了,或者Window的scroll监听不好用了
- HelloWorld
- sql server duplicate values are counted after
- VRRP overview and experiment
- BIO, NIO, AIO practical study notes (easy to understand theory)
- el-progress implements different colors of the progress bar
猜你喜欢

前置++和后置++的区别

lingo入门——河北省第三届研究生建模竞赛B题

人人AI(吴恩达系列)

LeetCode刷题记录(2)

Transformer interprets and predicts instance records in detail

Late night drinking, 50 classic SQL questions, really fragrant~

Configuration of routers and static routes

Alibaba Cloud Video on Demand

Successful indie developers deal with failure & imposters

邮件管理 过滤邮件
随机推荐
D39_Vector
Nacos集群搭建
LaTeX使用frame制作PPT图片没有标号
【FAQ】CCAPI Compatible EOS Camera List (Updated in August 2022)
Wireshark packet capture and common filtering methods
Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
numpy.random usage documentation
网络排错基础-学习笔记
May I ask how to read the binlog of the two tables of hologres through flink sql, and then how to join?
Four ways to obtain Class objects through reflection
## 简讲protobuf-从原理到使用
BIO, NIO, AIO practical study notes (easy to understand theory)
link 和@improt的区别
LeetCode刷题记录(2)
In-depth analysis if according to data authority @datascope (annotation + AOP + dynamic sql splicing) [step by step, with analysis process]
What is Alibaba Cloud Express Beauty Station?
What is the website ICP record?
D41_buffer pool
H5开发调试-Fiddler手机抓包
Late night drinking, 50 classic SQL questions, really fragrant~