3-6.html

来自「一些css样式表的例子供大家学习和参考。」· HTML 代码 · 共 37 行

HTML
37
字号
<html>
<head>
	<title>文字粗体</title>
<style>
<!--
h1 span{ font-weight:lighter;}
span{ font-size:28px; }
span.one{ font-weight:100; }
span.two{ font-weight:200; }
span.three{ font-weight:300; }
span.four{ font-weight:400; }
span.five{ font-weight:500; }
span.six{ font-weight:600; }
span.seven{ font-weight:700; }
span.eight{ font-weight:800; }
span.nine{ font-weight:900; }
span.ten{ font-weight:bold; }
span.eleven{ font-weight:normal; }
-->
</style>
   </head>

<body>
	<h1>文字<span>粗</span>体</h1>
	<span class="one">文字粗细:100</span>
	<span class="two">文字粗细:200</span>
	<span class="three">文字粗细:300</span>
	<span class="four">文字粗细:400</span>
	<span class="five">文字粗细:500</span>
	<span class="six">文字粗细:600</span>
	<span class="seven">文字粗细:700</span>
	<span class="eight">文字粗细:800</span>
	<span class="nine">文字粗细:900</span>
	<span class="ten">文字粗细:bold</span>
	<span class="eleven">文字粗细:normal</span>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?