摘要: <script type="text/javascript"> var isIE = function (ver) { var b = document.createElement('b') b.innerHTML = '<!--[if IE ' + ver + ']><i></i><![endif 阅读全文
posted @ 2016-05-17 15:03 SKILL·NULL 阅读(359) 评论(0) 推荐(0)
摘要: 很简单,只需在<body>中添加如下代码: <body oncontextmenu='return false' ondragstart='return false' onselectstart='return false' onselect='document.selection.empty()' 阅读全文
posted @ 2016-05-17 13:28 SKILL·NULL 阅读(386) 评论(0) 推荐(0)
摘要: HTML: <div class="col-md-3"> <nav class="navbar"> <div class="container-fluid"> <div class="navbar-header common-border-bottom common-border-right com 阅读全文
posted @ 2016-05-16 14:32 SKILL·NULL 阅读(2934) 评论(0) 推荐(0)
摘要: <button onclick="javascript:history.go(-1);">返回上一页</button> <button onclick="javascript:history.back(-1);">返回上一页</button> 两个方法有所不同,一个保留表单数据,一个不保留数据。 j 阅读全文
posted @ 2016-05-12 17:15 SKILL·NULL 阅读(457) 评论(0) 推荐(0)
摘要: HTML: <input type="checkbox" onclick="boxOnclick(this,'some1')">全选一 <input type="checkbox" onclick="boxOnclick(this,'some2')">全选二 <input type="checkbo 阅读全文
posted @ 2016-05-11 17:47 SKILL·NULL 阅读(651) 评论(0) 推荐(0)
摘要: HTML: <button class="addHidden">点击</button> <div class="addShow" style="display:none">隐藏内容</div> JS: $(".addHidden").click(function () { if ($(".addSh 阅读全文
posted @ 2016-05-10 15:40 SKILL·NULL 阅读(767) 评论(0) 推荐(0)
摘要: HTML: <input type="checkbox" class="all"> <input type="checkbox" name="some"> JS: $(".all").click( function () { if (this.checked) { $("input[name='so 阅读全文
posted @ 2016-05-10 13:53 SKILL·NULL 阅读(189) 评论(0) 推荐(0)
摘要: HTML: <input type="checkbox" id="check-expert"> <div id="expert" style="display:none">隐藏层</div> JS: $(function () { if ($("#check-expert").attr("check 阅读全文
posted @ 2016-05-06 18:10 SKILL·NULL 阅读(771) 评论(0) 推荐(0)
摘要: CSS: .column-title { color: #9b9b9b; text-shadow: 1px 1px #d4d4d4;}.column-title:hover { color: #5a5a5a; text-shadow: none;}@media all and (-webkit-mi 阅读全文
posted @ 2016-04-28 11:42 SKILL·NULL 阅读(415) 评论(0) 推荐(1)
摘要: JS获取浏览器宽高的兼容写法: var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;var h = window.innerHeight || document. 阅读全文
posted @ 2016-04-26 17:08 SKILL·NULL 阅读(1053) 评论(0) 推荐(0)