如何用代码设置字体大小?

来源:百度知道 编辑:UC知道 时间:2024/05/16 14:31:14

<!DOCTYPE html> 
<html> 
<head> 
<title>修改字体大小.html</title> 

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
<meta http-equiv="description" content="this is my page"> 
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> 

<!--<link rel="stylesheet" type="text/css" href="./styles.css">--> 
<style type="text/css"> 
div{ 
border:1px red solid; 
width:455px; 
font-size:16px; 

.max{ 
font-size:20px; 

.moren{ 
font-size:16px; 

.min{ 
font-size:12px;