摘要:
html中,在图片和文字对齐的时候,一直没有达到想要的对齐效果,发现使用position中的相对定位+绝对定位+padding+margin可以达到需要的效果。 阅读全文
摘要:
效果图: 目录信息 graphic.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http- 阅读全文
摘要:
使用ext版本信息:ext-4.1.1a <!-- 下面是引入文件需要导入的文件信息 ext-all.css ext-all.js --><link rel="stylesheet" type="text/css" href="ext-4.1.1a/resources/css/ext-all.css 阅读全文
摘要:
通过获取请求头中字段user-agent来判别 阅读全文
摘要:
在tomcat或jetty容器中,在运行时都有编码,如果需要,可以更改设置,在电脑中一般运行时是GBK编码 阅读全文
摘要:
在页面中嵌入了iframe,如果需要传递参数到iframe中 1.通过将参数嵌入到url中,在iframe中使用${param.xxx}可以获取 2.通过将参数存入到session中,在iframe中使用${sessionScope.xxx}获取 阅读全文
摘要:
貌似 收藏栏的图标 阅读全文
摘要:
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 设置响应头... 阅读全文
摘要:
map时key/value形式存储信息的,键可以为对象null public static void main(String[] args) { Map map = new HashMap(); map.put("hello", "world"); m... 阅读全文
摘要:
在servlet中HttpServeltRequest中有一个方法getRequestURL()假如我们平常输入的地址是:localhost/Demo1/TestServlet?hello=world起初我认为,通过getRequestURL()得到的就是我所输入的,发现一直不对,没有实现我的设想,... 阅读全文