上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页
摘要: HTML:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset 阅读全文
posted @ 2013-04-03 14:41 leejersey 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: 绝对定位方式的瀑布流布局:一、布局1、包围块框的容器:<div id="main"> ... ...<div>2、一个块框:<div class="pin"> <div class="box"> <img src="./images/g (1).jpg"/> </div></div>3、初始化第一行/5个块框:.pin{ padding: 15px 0 0 15px; float: left;}.box{ padding: 10px 阅读全文
posted @ 2013-03-21 15:55 leejersey 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 细节1………………………………………………………………………………一、当文字与图片在一行,需要将文字与图片底对齐,需要这样写:<li>记住密码<img src="" align="bottom" style="margin-bottom:-4px"/></li>二、当文字与图片在一行,需要将文字与图片居中对齐,需要这样写:<li>记住密码<img src="static/img/xyx.jpg" align="middle"/>< 阅读全文
posted @ 2013-03-19 15:41 leejersey 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 原作:Getting started with jQuery Mobile ——Matthew David翻译:filod译文:http://blog.filod.net/jquerymobile-2/295.html转载声明:请注明原作、翻译以及译文链接。你每天都会对着它讲话,和它玩游戏,用它看新闻——没错,它就是你裤兜里的智能手机。android,黑莓还是iphone?为了让你清楚意识到究竟哪些才算是智能手机,我在下面总结了一个智能手机系统/设备的列表:Apple iPhone/iPod TouchGoogle AndroidRIM BlackBerry/Playbook OSNokia 阅读全文
posted @ 2013-03-14 16:32 leejersey 阅读(4538) 评论(0) 推荐(1) 编辑
摘要: PHP String 函数PHP:指示支持该函数的最早的 PHP 版本。函数 描述 PHPaddcslashes()在指定的字符前添加反斜杠。4addslashes()在指定的预定义字符前添加反斜杠。3bin2hex()把 ASCII 字符的字符串转换为十六进制值。3chop()rtrim() 的别名。3chr()从指定的 ASCII 值返回字符。3chunk_split()把字符串分割为一连串更小的部分。3convert_cyr_string()把字符由一种 Cyrillic 字符转换成另一种。3convert_uudecode()对 uuencode 编码的字符串进行解码。5convert 阅读全文
posted @ 2013-03-10 20:25 leejersey 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 目的:合理javascript开发风格。使别人轻松的阅读你的代码,并使代码更优雅。1、空白永远都不要混用空格和Tab。2、美化语法a、小括号, 花括号, 换行if/else/for/while/try 通常都有小括号、花括号和多行b、一元操作符(如 delete, typeof, void)或在某些关键词(如 return, throw, case, new) 之后, 不要使用括号;3、赋值, 声明, 函数a、同类型变量组合在一起。b、函数内变量声明,总在作用域顶部c、函数声明必须有意义(构造器首字母大写)d、变量声明规范:e、普通变量统一使用驼峰形式;f、常量使用全部大写, 多个单词以下划线 阅读全文
posted @ 2013-03-05 09:21 leejersey 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.ruanyifeng.com/blog/2012/05/responsive_web_design.html 阅读全文
posted @ 2013-02-26 11:37 leejersey 阅读(615) 评论(0) 推荐(0) 编辑
摘要: function getElementsByAttribute(attribute, attributeValue){ var elementArray = new Array(); var matchedArray = new Array(); if (document.all) { elementArray = document.all; } else { elementArray = document.getElementsByTagName("*"); } for (var i = 0; i < elementArray.length; i++) { ... 阅读全文
posted @ 2013-02-25 17:33 leejersey 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-02-24 22:34 leejersey 阅读(434) 评论(0) 推荐(0) 编辑
摘要: class和className兼容方法:object.setAttribute("class","content")在IE8、Chrome、火狐、Opera10中都能设置成功;但是在IE7下无法设置。object.setAttribute("className","content")只有IE7能设置成功,但是其他浏览器均无法设置。兼容方法:使用object.className="content"style和cssText兼容方法:object.setAttribute("style&q 阅读全文
posted @ 2013-02-20 17:06 leejersey 阅读(15545) 评论(2) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页