CSS-07-CSS文本设置
2024-10-08 04:30:05
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--CSS文本设置:-->
<!--color:设置文字的颜色,如:color:red;-->
<!--font-size:设置文字的大小,如:font-size:12px;-->
<!--font-family:设置文字的字样,如font-family:"微软雅黑";-->
<!--font-style:设置文字是否倾斜,如font-style:'normal';设置不倾斜。font-style:'italic';设置文字倾斜;-->
<!--font-weight:设置文字的加粗,如:font-weight:bold;设置加粗。font-weight:normal;设置不加粗-->
<!--line-height:设置文字的行高,如:line-height:24px;-->
<!--text-decoration:设置文字的上中下划线,如text-decoration:none;将文字划线去掉-->
<!--text-indent:设置文字首行缩进,如:text-indent:24px;设置文字首行缩进24px-->
<!--text-align:设置文字水平对齐方式,如text-align:center;设置文字水平居中-->
<style type="text/css">
.text{
font-family: "微软雅黑";
font-size: 16px;
color: #369;
font-style: italic;
font-weight: bold;
line-height: 20px;
line-break: normal;
/*....*/
}
</style>
</head>
<body>
<div class="text">
CSS文本设置:
color:设置文字的颜色,如:color:red;
font-size:设置文字的大小,如:font-size:12px;
font-family:设置文字的字样,如font-family:"楷体";
font-style:设置文字是否倾斜,如font-style:'normal';设置不倾斜。font-style:'italic';设置文字倾斜;
font-weight:设置文字的加粗,如:font-weight:bold;设置加粗。font-weight:normal;设置不加粗
line-height:设置文字的行高,如:line-height:24px;
text-decoration:设置文字的上中下划线,如text-decoration:none;将文字划线去掉
text-indent:设置文字首行缩进,如:text-indent:24px;设置文字首行缩进24px
text-align:设置文字水平对齐方式,如text-align:center;设置文字水平居中
</div>
</body>
</html>
最新文章
- Linux简单指令操作
- initWithCoder与initWithFrame的区别
- vuejsLearn--- v-for列表渲染
- Asp.net WebPages框架运行原理浅析(转)
- js写当鼠标悬浮及移开出现背景变化
- OnClientClick和OnClick同时使用!
- maven实战_01_搭建maven开发环境
- BI案例:KPI在商业智能中的应用(ZT)
- QT 的信号与槽
- 论文阅读(2014-2)----The YouTube Video Recommendation System
- C# Sending data using GET or POST ZZ
- JNDI实现服务器(tomcat)与数据库(mysql)连接的数据源配置以及获取连接的java代码
- Java基础总结--多线程总结1
- Abnormal Detection(异常检测)和 Supervised Learning(有监督训练)在异常检测上的应用初探
- memcache 杂记
- 解决 Vim 的 quickfix 插件错误信息乱码问题
- salt-api配置安装 以及使用
- IDEA从SVN中导入多模块项目
- 有源汇有上下界最小流 DInic + 各种优化 模板
- bzoj 3924 点分
热门文章
- jdbc的URL配置
- 二、搜索class文件
- RobotFramework+Appium 升级Appium v1.10.0后,执行click element时报错:InvalidSelectorException: Message: Locator Strategy &#39;css selector&#39; is not supported for this session,解决办法
- 第四阶段:2.从零打造一款工具APP产品
- 解析GMT+N时区,返回日期类型
- IteratorPattern(迭代器模式)-----Java/.Net
- 在Mac/linux上查找(并终止)进程锁定特定端口的几种方法
- java高并发梳理
- Java中数组的使用
- POJ 1269 Intersecting Lines(判断两直线位置关系)