- 博客(5)
- 收藏
- 关注
原创 bootstrap bug fixed
将modal拿到外面,解决,modal放的结构层级太深,背backdrop遮罩盖住,,,,,bootstrap v3.3.7版本$('.modal').on('show.bs.modal', function (e) { $('.modal').detach().appendTo('body')})丢失backdrop的modal,手动添加一个if ($('#taskHistoryPag
2016-10-27 16:53:02 482
原创 css3 radio checkbox 自定义
// 自定义radio样式-大单选框input[type=radio] {position: relative;-webkit-appearance: none;box-sizing: border-box;appearance: none;width: 18px;height: 18px;vertical-align: middle;backgroun
2016-10-24 18:04:44 367
原创 javascript函数节流 keyup
Document var n = 0; function resizehandler() { console.log(++n); } function throttle(method, context, delay) { clearTimeout(method.tId); met
2016-10-18 10:13:52 843
转载 Javascript函数节流
最近在做网页的时候有个需求,就是浏览器窗口改变的时候需要改一些页面元素大小,于是乎很自然的想到了window的resize事件,于是乎我是这么写的DOCTYPE html>html>head> title>Throttletitle>head>body> script type="text/javascript"> n=0; fu
2016-10-18 10:11:19 232
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人