在css样式中使用jsp表达式
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>在css样式中使用jsp表达式</title>
<style type="text/css">
input {
/*文本框样式*/
//font-size: 40px;
font-size: <%='4'%>0px;
color: #CC0000;
border-style: dashed;
//width: 200px;
//width: <%out.print("500");%>px;
//width: <%out.print("9");%>00px;
width: <%out.print('1');%>200px;
}
</style>
</head>
<body>
<input type="text" id="myTime" name="nowTime" value="测试"/><br/>
</body>
</html>