<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>字体样式</title>
<!--内链式-->
<style type="text/css">
p{
/*设置字体大小*/
font-size: 30px;
/*推荐设置斜体的时候使用oblique,italic,normal*/
font-style:oblique;
/*设置字体的粗细*/
font-weight:bolder;
font-family:"微软雅黑";
/*设置字体颜色*/
color:red;
}
</style>
</head>
<body>
<!--默认字体大小是16px=1em-->
<p>我们这里放个p!!!</p>
</body>
</html>
python全栈笔记-前端2.06_字体样式
猜你喜欢
转载自blog.csdn.net/weixin_37267713/article/details/82530450
今日推荐
周排行