摘要: <ul id="category"> <li class="item"> <div class="title">国际品牌</div> <ul class="list clearfix"> <li><a href="#">优衣库</a></li> <li><a href="#">优衣库</a></li> <li> 阅读全文
posted @ 2013-05-08 14:12 一只帅蚂蚁 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-05-02 11:10 一只帅蚂蚁 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 看了下jquery的源码,特意分析下其中的隐式链的实现方式。<div id="box" class="sd dd">box</div><div id="box2">box</div><p>fwef</p><p>fwef</p><p>fwef</p><p>fwef</p><p>fwef</p><p class="sd dd">fwef< 阅读全文
posted @ 2013-04-26 09:33 一只帅蚂蚁 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 今天终于把这个插件的原理搞清楚了,并自己写了一个,有待完善!.roundabout{width:500px; height:300px; background:#6FF; position:relative;}.roundabout li{width:300px;height:250px;background:#f60; position:absolute;}.roundabout li.item1{z-index:5;left:100px;top:25px;}.roundabout li.item2{z-index:4;height:200px;left:200px;top:50px; op 阅读全文
posted @ 2013-04-22 10:59 一只帅蚂蚁 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <table> <thead> <tr><th>编号</th><th>姓名</th><th>年龄</th></tr> </thead> <tbody id="content2"> <tr><td>1</td><td>杨永</td><td>22</td></tr> </tbody></table><div id 阅读全文
posted @ 2013-04-19 13:21 一只帅蚂蚁 阅读(153) 评论(0) 推荐(0) 编辑
摘要: //*去掉空格*/String.prototype.Trim = function() { var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/); return (m == null) ? "" : m[1];}//*用户名判断 * 用户名由6到12位字母、数字组成* */String.prototype.isUserName = function() { return (/^[a-zA-Z0-9]{6,12}$/.test(this.Trim()));}//*密码判断 * 密码由6到16位字母和数字组成* */String.protot 阅读全文
posted @ 2013-04-15 17:37 一只帅蚂蚁 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 一、Chrome浏览器选择器Hack/* Chrome 24- and Safari 5- */::made-up-pseudo-element, .selector { 代码放在这里} 媒体查询Hacks/* Chrome, Safari 3+ */@media screen and (-webkit-min-device-pixel-ratio:0) { 代码放在这里 } JavaScript Hack/* Chrome */var isChrome = Boolean(window.chrome); 二、Firefox浏览器属性选择器Hack/* Firefox 1.5 */body.. 阅读全文
posted @ 2013-04-03 15:39 一只帅蚂蚁 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 一、IE下;scrollbar-arrow-color:#fff;设置滚动句柄的上下箭头的颜色scrollbar-face-color:blue;设置滚动句柄和上下箭头按钮的背景色scrollbar-darkshadow-color:#fff;设置滚动句柄的立体外围的颜色scrollbar-highlight-color:#fff;设置滚动句柄内围的高亮颜色scrollbar-shadow-color:#fff;设置滚动句柄的投影颜色scrollbar-track-color:#fff;设置滚动区域的背景色scrollbar-3dlight-color:#fff;设置滚动句柄的3d发光色二、谷 阅读全文
posted @ 2013-03-26 14:32 一只帅蚂蚁 阅读(356) 评论(0) 推荐(0) 编辑
摘要: /*放大镜*/.ZoomMain {margin:100px;width:395px;height:460px;float:left;position:relative;}.ZoomMain .zoom {height:393px;width:393px;position:relative;border: 1px solid #dcdddd;}.ZoomMain .zoom .move{position:absolute;left:0; top:0;display:none;width:195px; height:195px;background:#000;opacity:0.2;filter 阅读全文
posted @ 2013-03-26 08:57 一只帅蚂蚁 阅读(249) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> #SlideBannerBox{height:350px; position:relative; background:#fafafa; overflow:hidden;} #SlideBannerBox li{ background:url(images/loadingPD.gif) no-repeat center center;} #SlideBannerBox a{display:block; height:350px;} #SlideBannerBox .item{ position:absolute; 阅读全文
posted @ 2013-03-18 15:35 一只帅蚂蚁 阅读(333) 评论(0) 推荐(0) 编辑