html
共 6 篇文章
滚动条 伪元素
::-webkit-scrollbar { width: 0 !important } .id { margin: 0 auto; overflow: auto; } /quote]
2016-04-13 16:37 · html · XHTML
下拉框 取值汇总
[code="java"] 用户填写 system whj var acc = $("#HostAccount").val(); //532 var accname = $("#HostAccount option:selected").text();//system var acctype = $("#HostAccount option:selected").attr("acctype");//1 [/code]
2015-08-21 14:40 · html · JavaScript
判断 页面技巧
[code="java"] js: if (document.getElementById("test1-header")){ $("#test1-header").click(); } jquery: if($('#container').length){ $('#log').append('#container存在页面中'); //使用$('#container').length来判断id="container"的元素是否存在,存在则> } 判断页面元素是否可见 相关代码: if($('#container').is(':visible')){ //如果需要判断是否隐藏,请使用is(':…
2015-07-31 11:58 · html · HTML
from 提交
[code="java"] 位于boby 标签之间 print "" print " " %(actionPage) print "" % str(session) print "" %(user) print "" %(name) print " " print " top.location.href='/'; 返回页面首页 js调用: print "function Refresh(){ " # print " $.ajax({\n " # print " url:\"userlist.cgi\"," # print " data:{se:localsession,us:historyn…
2015-03-27 13:58 · html · HTML