css实例007--css文字类型设置

css实例007--css⽂字类型设置
css⽂字类型设置
font-style: italic;                                /*倾斜字体*/
font-style: normal;                                /*正常字体不倾斜*/
font-weight: 400;                                  /*是否加粗 400 是不加粗 700是加粗*/
font-size: 50px;                                    /*字号⼤⼩*/
font-family: 'Times New Roman', Times, serif;      /*字体*/
复合形式:
复合形式顺序不能更换
/* 400 是不加粗 700是加粗 /
/ 必须要有字号和字体 其他的可以省略 顺序不能乱 /
/
font-style:normal;font-weight: 400; font-size: 30px;font-family: Arial, Helvetica, sans-serif; */ font: normal 400 30px Arial, Helvetica, sans-serif;
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
国家海洋局极地办
<meta http-equiv="X-UA-Compatible"content="IE=edge">
<meta name="viewport"content="width=device-width, initial-scale=1.0">
<title>字体系列</title>
<style>
body{
/* font-family:Arial, Helvetica, sans-serif;
font-size: 30px;
项目成本管理论文
font-style: normal;
font:fontstyle fontHeight fontsize fontFamily */
/* 400 是不加粗 700是加粗 */
/* 必须要有字号和字体其他的可以省略顺序不能乱 */
/* font-style:normal;font-weight: 400; font-size: 30px;font-family: Arial, Helvetica, sans-serif; */
font: normal 400 30px Arial, Helvetica, sans-serif;
}
h1{
font-style: italic;/*倾斜字体*/
font-style: normal;/*正常字体不倾斜*/
网络市场营销
font-weight: 400;/*是否加粗 400 是不加粗 700是加粗*/
font-size: 50px;/*字号⼤⼩*/
font-family:'Times New Roman', Times, serif;/*字体*/
}
</style>
</head>
<body>
<h1 align="center">静夜思</h1>
<h3 align="center">      --李⽩</h3>
<div align="center">midd
窗前明⽉光<br>
疑似地上霜<br>视觉影像
举头望明⽉<br>
低头思故乡<br>
</div>
</body>
采空区处理方法</html>

本文发布于:2024-09-21 14:36:31,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/531056.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:字体   顺序   不能   项目   采空区   设置   网络   视觉
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议