当前位置:网站首页>文本样式这一篇文章就够了
文本样式这一篇文章就够了
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、解决图片三像素问题
图片三像素问题在我上一篇文章中有详细介绍
边栏推荐
- ALC experiment
- 邮件管理 过滤邮件
- 多行文本省略
- Configuration of routers and static routes
- Next-Generation Parsing Technology - Cloud Parsing
- Autoware--Beike Tianhui rfans lidar uses the camera & lidar joint calibration file to verify the fusion effect of point cloud images
- Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
- 错误记录集锦(遇到则记下)
- The hook of the operation of the selenium module
- 数组&的运算
猜你喜欢

多行文本省略

Quick Start to Drools Rule Engine (1)

ALC experiment

Wireshark packet capture and common filtering methods

config.js related configuration summary

自营商城提高用户留存小技巧,商城对接小游戏分享

Nacos配置服务的源码解析(全)

From "dual card dual standby" to "dual communication", vivo took the lead in promoting the implementation of the DSDA architecture

Met with the browser page

农场游戏果园系统+牧场养殖系统+广告联盟模式流量主游戏小程序APP V1
随机推荐
无法导入torchvision.io.read_image
input detailed file upload
vscode notes
The method of using ROS1 bag under ROS2
LaTeX使用frame制作PPT图片没有标号
DevOps流程demo(实操记录)
Tencent Internal Technology: Evolution of Server Architecture of "The Legend of Xuanyuan"
深夜小酌,50道经典SQL题,真香~
LaTeX笔记
云计算基础-学习笔记
Wireshark packet capture and common filtering methods
One-arm routing experiment and three-layer switch experiment
指针常量与常量指针 巧记
config.js related configuration summary
Matplotlib绘图笔记
NB-IOT智能云家具项目系列实站
Writing OpenCV in VSCode
product learning materials
ES2020新特性
In-depth analysis if according to data authority @datascope (annotation + AOP + dynamic sql splicing) [step by step, with analysis process]