摘要:
轮播图 中间放大 内容跟着切换 (参考 米趣 网站) html <div class="jcarousel-wrapper"> <div class="jcarousel" data-jcarousel="true"> <ul id="myjcar"> </ul> </div> <a href="# 阅读全文
摘要:
$(document).ready(function () { }//没有双引号 $(function() { } 阅读全文
摘要:
参考 http://doc.bropaul.com/Stellar.js/docs/ https://github.com/markdalgleish/stellar.js#download http://segmentfault.com/a/1190000002566463#articleHead 阅读全文
摘要:
$(this) 返回一个 jQuery 对象,你可以对它调用多个 jQuery 方法,比如用 text() 获取文本,用val() 获取值等等。 而 this 代表当前元素,它是 JavaScript 关键词中的一个,表示上下文中的当前 DOM 元素。你不能对它调用 jQuery 方法,直到它被 $ 阅读全文
摘要:
js写css()方法,记得加引号“ ”,除非是数字。如: $("#android").css({ "position": "absolute", "z-index": 3, "background": "rgba(90,100,100,0.5)" } 阅读全文