CSS文本和字体属性的设置

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		.divFontkUse{
				border: 3px solid;
				margin: 5px;
				width: 200px;
				background:bisque;
			}
			.divTextUse{
				border: 3px solid;
				margin: 5px;
				width: 200px;
				background:magenta;
			}
			
			.fontStyle01{
				font-family: "ms serif";
				font-style: normal;
				font-variant: normal;
				font-weight: normal;
				font-size: 30px;
			}
			.fontStyle02{
				font-family: "french script mt";
				font-style: italic;
				font-variant: small-caps;
				font-weight: bold;
				
			}
			.fontStyle03{
				font-family: "ms sans serif";
				font-style: oblique;
				font-weight: 900;
			}
			.fontStyle04{
				/* 简写 */
				font: italic bold 20px;
			}
			
			.textProSetting{
				text-indent: 30px;
				text-align: center;
				text-decoration: underline;
				letter-spacing: 4px;
				
			}
			/* /* /* / */ */ */ */ */ */ */ */ */ */ */ */ */ */ */ */ */ */
			.titleForFunction{
				color: red;
			}
	</head>
	<body>
		<div class="divFontkUse">
			<h3 class="titleForFunction">CSS字体</h3>
			<h3>各种属性的设置</h3>
			<!-- fontFamily fontStyle fontVariant fontWeight  fontSize-->
			<div>
				<p class="fontStyle01">
					Hello world!
				</p>
				<p class="fontStyle02">
					Hello world!
				</p>
				<p class="fontStyle03">
					Hello world!
				</p>
				<p class="fontStyle04">
					加油!I can do it!
				</p>
			</div>
			<div class="divTextUse">
				<h3 class="titleForFunction">CSS字体</h3>
				<h3>文本各种属性的设置</h3>
				<!-- text-indent  text-alin text-decoration text-transform letter-spacing的使用 -->
				<div>
					<p class="textProSetting">
						励志名言:没有收拾残局的能力,就别放纵善变的绪 
						1、有时候,我们活得累,并非生活过于刻薄,而是们
						太容易被外界的氛围所感染,被他人的情绪所左右。 
						2、身材不好就去锻炼,没钱就努力去赚。别把窘境怒
						于别人,唯一可以抱怨的,只是不够努力的自己
					</p>
				</div>

	</body>
</html>

效果图:
在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值