css选择器:
html 选择器 a{}
class 选择器 .dd{}
id 选择器 #ee{}
关联选择器 .ff a {}
组合选择器 .gg,.hh{}
伪元素选择器 a:hover {}
1、隐藏滚动条:overflow: hidden;
2、style="margin-top: -3" 上移
3、http://www.div-css.net/div_css/topic/index.asp?id=7403
4、类似iframe框架,左边点击,右边显示
1、include
2、div+ajax
1、在客户端写数组,然后根据穿的参数在数组中取值
var val = ["/website/userLogin.do?method=userInfo",//用户信息
"/website/userLogin.do?method=productInfo&page=1",//下载中心
"/website/dataStream.do?method=uploadIn",
"/website/userQuestion.do?method=myQuestion",
""];
2、直接在左边的链接里写
<a href="<%=request.getContextPath()%>/website/userLogin.do?method=userInfo" id="p3" onclick="dataupload(this.href);">,取得href里的链接,然后ajax
5、*.jsp
<%
Map map = new HashMap();
map.put(1,"mmm");
map.put(2,"ddd");
%>//服务器map
<body>
<a onclick="getUrl(1)"></a>
<a onclick="getUrl(2)"></a>
</body>
<script type="text/javascript">
function getUrl(key){
var val = "<%=map.get(key);%>";//这种思路是错误的,不能从静态的客户端取得服务器的map值
}
</script>
正确做法:应将上面的服务器map写到客户端的map中去,即在javascript中写。
4、z-index用法小结 http://lz726.iteye.com/blog/175938
5、http://www.sincol.net 网页素材