上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: switch 语句switch 语句是 if 语句的兄弟语句。开发者可以用 switch 语句为表达式提供一系列的情况(case)。switch 语句的语法:switch (expression) case value: statement; break; case value: statement; break; case value: statement; break; case value: statement; break;... case value: statement; break; default: statement;每个情况(cas... 阅读全文
posted @ 2012-06-15 13:47 kpbiao 阅读(13966) 评论(0) 推荐(0) 编辑
摘要: :添加无谓的标签.img312{ height:400px; width:400px; border:2px solid #f60; background:#f3f3f3; line-height:400px; text-align:center} .img312 img{ vertical-align:middle} .img312 .m_middle{ display:inline-block; font-size:0; height:100%} <div class="img312"> <i class="m_middle"> 阅读全文
posted @ 2012-06-07 17:01 kpbiao 阅读(197) 评论(0) 推荐(0) 编辑
摘要: /** * 图片按比例自适应缩放 * @param img {Element} 用户上传的图片 * @param maxWidth {Number} 预览区域的最大宽度 * @param maxHeight {Number} 预览区域的最大高度 */var resizeImg = function(img, maxWidth, maxHeight){ var w = img.width, h = img.height; // 当图片比预览区域小时不做任何改变 if(w < maxWidth && h < maxHeight)... 阅读全文
posted @ 2012-06-06 17:05 kpbiao 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 标签display:inline-block;后会出现空隙。以前遇到的这个问题一般我会用float代替inline-block;另外就是标签之间的空格去掉。压缩代码也可以去掉左右的间隙。====================================http://www.zhangxinxu.com/wordpress/?p=1194http://90du.es/2012/04/fighting-the-space-between-inline-block-elements/#more-1363马老板的例子html:<ulclass="list">< 阅读全文
posted @ 2012-06-06 15:18 kpbiao 阅读(175) 评论(0) 推荐(0) 编辑
摘要: notepad++ 配置文件修改路径 appData是一个隐藏文件夹uesername 是用户名。C:\Users\uesername\AppData\Roaming\Notepad++\plugins\config\ZenCodingPython\zencoding\zen-settings.py修改zen-settings.py 文件 阅读全文
posted @ 2012-05-25 09:31 kpbiao 阅读(381) 评论(0) 推荐(0) 编辑
摘要: http://caniuse.com/ 阅读全文
posted @ 2012-05-22 15:36 kpbiao 阅读(108) 评论(0) 推荐(0) 编辑
摘要: var TH = TH || {};TH.extend = function(first, second){ for (var prop in second){ first[prop] = second[prop]; }}; TH.css = function(element, styles){ if (styles.opacity != null){ if (typeof element.style.opacity != 'string' && typeof(element.filters) != 'undefined'){ ... 阅读全文
posted @ 2012-05-18 10:11 kpbiao 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 忌讳的是改版目标不明确首先就得问几个问题1.改版以后的商业目标,2.改版的依据3.改版的数据依据4.改版后的预期目标。如果只是凭感觉来的那建议不要做太大的改动。要讲出推理和逻辑而不是感觉讲用户的真是感受而不是自己的猜测不要讲我们要讲客户改版后对用户的习惯是否造成影响和用户的信任。用户凭什么相信这个改版后的产品。任何一个题为都要问一句有数据吗?为什么要这么讲?先定目标再讨讨论业务和技术的实现。作为pd忌讳用“可能”‘也许’‘大概’‘或许’等不确定词。 阅读全文
posted @ 2012-05-15 16:04 kpbiao 阅读(125) 评论(0) 推荐(0) 编辑
摘要: ::selection { background: #ff9e9a; color: #fff;}::-moz-selection { background: #ff9e9a; color: #fff;}鼠标选中页面或者ctrl+a选中页面后的颜色值! 阅读全文
posted @ 2012-05-15 13:48 kpbiao 阅读(384) 评论(0) 推荐(0) 编辑
摘要: //sidebar$(document).ready(function(){var firstTop = 150 + "px";$(".sidebar").css("top",firstTop);$(window).scroll(function (){var offsetTop = $(window).scrollTop() + 150 +"px";$(".sidebar").animate({top : offsetTop },{duration:300 , queue:false});}) 阅读全文
posted @ 2012-05-04 15:15 kpbiao 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页