css设置楷体的方法:首先新建一个html文件;然后在html 标签中,输入css代码为“body{font-family:楷体}”即可。</p></blockquote> <p><img src="https://img.php.cn/upload/article/202105/27/2021052711194178501.jpg" alt="css怎么设置楷体" ></p> <p>本文操作环境:Windows7系统、HTML5&&CSS3版,DELL G3电脑</p> <p>首先,打开html编辑器,新建html文件,例如:index.html。</p> <p><img src="https://img.php.cn/upload/image/427/262/673/1622085621281001.png" title="1622085621281001.png" alt="23f63599a0e2690a514bb42aa2d1819.png"></p> <p>在index.html中的<style>标签中,输入css代码:body{font-family: 楷体}。</p> <p><img src="https://img.php.cn/upload/image/867/717/479/1622085618573647.png" title="1622085618573647.png" alt="1233891b390e3ea20733351302d7a4f.png"></p> <p>浏览器运行index.html页面,此时文字的样式被成功定义为楷体。</p> <p><img src="https://img.php.cn/upload/image/584/527/439/1622085615380877.png" title="1622085615380877.png" alt="ca3dc8e023a0a421bcb843977df3964.png"></p> <p>推荐:《<a href="https://www.php.cn/course/list/11.html" target="_blank">HTML视频教程</a>》《<a href="https://www.php.cn/course/list/12.html" target="_blank">css视频教程</a>》<br></p>