1.HTML中引入文件的两种方式
1.1.<%@ include file="../rule_cn.html"%> //无规则文件(无HTML起始标签)
1.2.<jsp:include page=""></jsp:include> //有规则文件
利用jsp指令引入文件需要在web.xml配置编码:
<jsp-config>
<jsp-property-group>
<description>Special property group for JSP Configuration HTML example.</description>
<display-name>JSPConfiguration</display-name>
<url-pattern>*.html</url-pattern>
<el-ignored>true</el-ignored>
<page-encoding>UTF-8</page-encoding>
<scripting-invalid>false</scripting-invalid>
<include-prelude></include-prelude>
<include-coda></include-coda>
</jsp-property-group>
</jsp-config>
2.position的属性:relative(父定位:相对定位) absolute(子定位:绝对定位)
3.white-space:nowrap /* 强制不换行*/
4.overflow-x: hidden; /* 横向滚动条隐藏*/ overflow-y: auto; /* 纵向滚动条自适应*/
5.正则表达式:[A-z]{3} //代表A到Z任意3个字符