![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
YINGYINT5710
这个作者很懒,什么都没留下…
展开
-
javascript实现七屏百叶窗效果
即鼠标放在的那张图片的宽度变大,其余图片的宽度慢慢变小,采用float布局方式。 代码如下: 七屏百叶窗 *{padding:0;margin:0;} #container{width:850px;height:370px;margin:20px auto;background:#000;padding:10px 10px;} #container .title{原创 2016-09-12 21:54:30 · 679 阅读 · 0 评论 -
javascript实现风车效果
效果图 代码: 箭头动画购车过滤的满屏焦点图 body{width:100%;height:100%;} *{padding:0;margin:0;} #container{position:relative;margin:0 auto;overflow:hidden;} #container #back{width:100%;height:100%;z-index原创 2016-09-12 22:11:51 · 916 阅读 · 0 评论 -
创建ajax对象及解决不同浏览器对XMLHttpRequest对象的兼容问题
/** * Created by Evil on 16/8/29. */ /** * 此方法解决不同浏览器对XMLHttpRequest对象的兼容问题 * @returns {*} */ function createXMLHttpRequest(){ try { return new window.XMLHttpRequest();原创 2016-09-12 22:16:44 · 938 阅读 · 0 评论 -
js实现百叶窗
效果一: 效果二: 效果三: 代码如下: 百叶窗 *{padding:0;margin:0;} #container{width:800px;height:540px;border:1px solid #eee;margin:0 auto;position:relative;overflow:hidden;} function Blind(原创 2016-09-12 22:41:41 · 698 阅读 · 0 评论 -
jquery基础
1.jquery与dom对象 var res1 = $("#div1");//jquery对象 var res2 = document.getElementById("div1");//原生js的dom对象 js dom对象转为jquery对象(集合) $(res2) $(document) $(window) jquery对象转为js dom 对象 res1.原创 2016-09-18 22:21:31 · 265 阅读 · 0 评论