div{ color: blue; } a{ color: red; } Hello World! 你好! 11111 运行结果:">
时间:2021-07-01 10:21:17 帮助过:6人阅读
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> Hello World!你好!11111
字体大小设置:font-size
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> 二号字 ,磅值为:221em的字体32像素的字体
2em的字体
运行的结果
字体类型:font-family<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> 仿宋_GB2312微软雅黑,宋体黑体
Times New Roman
运行结果:其它:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>字体加粗 文本斜体显示加下划线
运行的结果:
版权声明:本文为博主原创文章,未经博主允许不得转载。