css中如何让文字大小改变

文字属性介绍:

font-size 属性用于设置字体大小。

属性值:

<img alt=\"CSS中如何让文字大小改变\” alt=\”1738cf36fa0fc6c29d0ea3b09b851ed.png\” src=\”https://www.freexyz.cn/d/file/20210224/3663332e515a1b4ab2a6a17d66236a12.png\” title=\”1614155634462550.png\” />

演示代码:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>php中文网</title>
<style>
h1 {font-size:250%;}
h2 {font-size:200%;}
p {font-size:100%;}
</style>
</head>

<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<p>This is a paragraph.</p>
</body>

</html>

运行结果:

1334e292599b6d4878ceb58e436e0f6c

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容