上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页
摘要: document.querySelector('body').addEventListener('touchmove', function(e) { e.preventDefault(); }) 此类事件是手机touchmove默认事件行为,可以通过js代码禁止默认事件: 阅读全文
posted @ 2017-12-29 16:32 简单就好zyx 阅读(1907) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 注意点父级元素高度与第一个子元素高度相同才可无限滚动。 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)
摘要: <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)
摘要: /*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)
摘要: 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)
摘要: 阅读全文
posted @ 2017-10-14 10:50 简单就好zyx 阅读(134) 评论(0) 推荐(0)
摘要: 用两个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 下一页