CSS 文本样式
2024-10-01 20:07:37
1. 文本样式 text
<!--文本颜色color -->
.text {color:red;}
2. 文本对齐方式 text-align
<style>
.text {
text-align:left;/*向左对齐*/
}
.text {
text-align:center;/*居中*/
}
.text {
text-align:right;/*向右对齐*/
}
.text {
text-align:justify;/*两端对齐*/
}
</style>
3. 文本修饰 text-decoration
.decoration {
text-decoration:none;/*默认样式*/
}
.decoration {
text-decoration:overline;/*上划线*/
}
.decoration {
text-decoration:underline;/*下划线*/
}
.decoration {
text-decoration:line-through;/*删除线*/
}
4. 字体 font
.text {
font-family:"微软雅黑";/*字形 微软雅黑*/
font-size:10px;/*字体大小 10像素*/
font-style:italic;/*字体样式 斜体 */
/*字体样式还有
normal 正常的
oblique 倾斜体
*/
}
最新文章
- Android Ormlite 学习笔记2 -- 主外键关系
- Python导入模块出现“no module named **”可能是这样的原因
- jieba
- HDU5461 Largest Point(暴力)
- redis3.0 集群实战1 -- 安装和配置
- MIT 2012分布式课程基础源码解析-线程池实现
- call-template和apply-templates
- DSP TMS320C6000基础学习(1)——介绍
- Android反编译-逆天的反编译
- Android - 数据存储 -存储文件
- HTML,JS禁止鼠标右键、禁止全选、复制、粘贴的方法
- 高效程序猿之 VS2010快速生成代码模板
- 花了一年时间完成的 在线G代码编辑,加工系统 G-Code Editor V1.0
- Find The Multiple (poj1426 一个好的做法)
- 邮件服务器 postfix
- 简单的复用accep
- [Linux] Linux Shell查找文件
- POJ 2318 TOYS (叉乘判断)
- 初识MYSQL2
- tomcat配置问题:访问http://localhost:8080/ 遇到 Access Error: 404
热门文章
- Spring AOP 实现数据库读写分离
- php八大设计模式之桥接模式
- [洛谷P3929]SAC E#1 - 一道神题 Sequence1
- yii2-Ueditor百度编辑器
- Unity 性能优化(力荐)
- Project Euler:Problem 58 Spiral primes
- Ubuntu常见报错及解决方式汇总
- iBatis框架使用 4步曲
- QThread 爬坑之旅(三种办法解决QObject: Cannot create children for a parent that is in a different thread)
- doT.js灵活运用之嵌入使用