css 怎么设置网页字体大小?

2024-10-29 16:20:29

1、我们先看看怎么设置整个网页的字体的大小,代码如下:<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style> body { font-size: 20px; } /*字体大小为20像素*/ </style></head><body> 这是一些测试文字。我的大小为20px像素。</body></html>设置大小后的效果图片如下:

css 怎么设置网页字体大小?
猜你喜欢