会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
简单就好zyx
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
28
下一页
2017年12月29日
ios禁止页面下拉
摘要: document.querySelector('body').addEventListener('touchmove', function(e) { e.preventDefault(); }) 此类事件是手机touchmove默认事件行为,可以通过js代码禁止默认事件:
阅读全文
posted @ 2017-12-29 16:32 简单就好zyx
阅读(1907)
评论(0)
推荐(0)
2017年12月27日
全选或不选
摘要: html <table class="table" width="100%" cellpadding="0" cellspacing="0"> <thead> <tr class="lineTh"> <th width="30"><i class="checkIcon allCheckbox"></
阅读全文
posted @ 2017-12-27 13:52 简单就好zyx
阅读(119)
评论(0)
推荐(0)
js模拟下拉框
摘要: html <label class="selectGroup"> <span class="selectP"></span> <select class="select"> <option>类型1</option> <option>类型2</option> <option>类型3</option>
阅读全文
posted @ 2017-12-27 13:48 简单就好zyx
阅读(125)
评论(0)
推荐(0)
2017年11月30日
上下无缝滚动
摘要: 注意点父级元素高度与第一个子元素高度相同才可无限滚动。 function scroll_table() { var speed = 10; table2.innerHTML = table1.innerHTML; function Marquee() { if (table1.offsetTop -
阅读全文
posted @ 2017-11-30 11:16 简单就好zyx
阅读(224)
评论(0)
推荐(0)
2017年10月18日
移动端表单验证用户名与手机号
摘要: <form class="form" target="ifrm" name="contactForm" method="post" action="mail.php" id="form1"> <div class="mt20"> <label for="name" class="namelabel"
阅读全文
posted @ 2017-10-18 11:39 简单就好zyx
阅读(1832)
评论(0)
推荐(0)
2017年10月17日
单选按钮与复选按钮选中
摘要: /*input*/input[type=checkbox]{background:url("../images/no.png") center no-repeat; height: .32rem;width:.35rem;display:inline-block;vertical-align:top
阅读全文
posted @ 2017-10-17 15:17 简单就好zyx
阅读(313)
评论(0)
推荐(0)
2017年10月16日
多入口、多出口配置
摘要: index.html <script src="./entry.js"></script><script src="./entry2.js"></script> webpack.config.js const path = require('path'); module.exports={ //入口
阅读全文
posted @ 2017-10-16 11:22 简单就好zyx
阅读(165)
评论(0)
推荐(0)
2017年10月14日
如何处理浏览器缓存 加t
摘要:
阅读全文
posted @ 2017-10-14 10:50 简单就好zyx
阅读(134)
评论(0)
推荐(0)
2017年9月27日
选中图标变色
摘要: 用两个class做背景图 .active .div{} 点击事件加在li上,样式写在active下的div里 $('.labelbox li').click(function() { $(this).toggleClass('active'); });
阅读全文
posted @ 2017-09-27 12:00 简单就好zyx
阅读(173)
评论(0)
推荐(0)
静态页面公共头尾提取方法
摘要: <div class="footer"></div> jquery $('.footer').load('footer.html');
阅读全文
posted @ 2017-09-27 11:54 简单就好zyx
阅读(275)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
28
下一页
公告