摘要: 本篇文章由:http://xinpure.com/difference-between-displaynone-and-visibilityhidden/区别分析首先我们都知道,display: none 和 visibility: hidden 都可以起到隐藏元素的功能两者的区别在于占用文档流的不同display: none 隐藏元素同时去除元素在文档流所占的空间visibility: hidd... 阅读全文
posted @ 2015-03-17 22:16 xinpureZhu 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/css3-pseudo-class-difference-between-nthchild-and-nthoftype/首先来看看 nth-child(n) 和 nth-of-type(n) 的共同点两者唯一的共同点就是: 参数n的用法n 可以是数字、关键词或公式(n > 0)nth-child(2) 表示其父元素的第二个子元素nth-child(... 阅读全文
posted @ 2015-03-16 22:57 xinpureZhu 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/advantages-of-php-file-write-put-contents-to-a-file/写入方法的比较先来看看使用 fwrite 是如何写入文件的$filename = 'HelloWorld.txt';$content = 'Hello World!';$fh = fopen($filename, "w");echo fwrite... 阅读全文
posted @ 2015-03-10 15:01 xinpureZhu 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/about-the-inline-block-element-between-spaces/说点什么display: inline-block 属性很好的避免了元素的浮动问题,但是会有点小问题,就是 inline-block 元素间的回车会被显示为一个空格。然而,我们写代码时,都是用回车来格式化的。。。最简单的方法就是把 inline-block ... 阅读全文
posted @ 2015-03-10 11:58 xinpureZhu 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/php-based-on-information-such-as-the-ip-address-in-your-city/获得IP地址在 PHP 中得到当前访问者的IP地址,还是比较简单的: $ip = $_SERVER['REMOTE_ADDR']将IP转换为城市等信息淘宝提供了一个IP数据接口: http://ip.taobao.com/se... 阅读全文
posted @ 2015-01-21 22:26 xinpureZhu 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/css3-animation-for-the-same-element-multiple-animation-effects/CSS3 Animation 并未提供 给一个元素同时添加多个动画效果的方法,就是说一个元素,只能给它定义一个动画效果,不能同时定义。需求说明比如说,我想实现一个这样的动画效果:一颗星星从上往下滑落,当滑落到指定位置时开始闪... 阅读全文
posted @ 2015-01-16 00:38 xinpureZhu 阅读(5385) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/install-ubuntu-server-12-04-jabberd2-server/Ubuntu Server 12.04 安装 Jabberd2 服务器安装 Jabberd2在终端输入以下命令安装 Jabberd2:sudo apt-get install jabberd2配置修改 /etc/jabberd2/sm.xml 文件1.修改服务器... 阅读全文
posted @ 2015-01-14 23:20 xinpureZhu 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/use-command-line-shortcuts-to-open-the-mac-system-sublime/方法一使用软链接ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime方法二使用 aliasali... 阅读全文
posted @ 2015-01-10 20:01 xinpureZhu 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/call-the-javascript-method-in-flash-actionscript-2-0/在 Flash ActionScript 2.0 中调用 Javascript 方法最近在工作中,有个这样的需求: 要从 Flash ActionScript 2.0 中调用网页上的 Javascript 方法这是一个关于 Flash 和 Ja... 阅读全文
posted @ 2015-01-08 21:26 xinpureZhu 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 本篇文章由:http://xinpure.com/elem-attr-does-not-correctly-determine-whether-the-checkbox-is-selected/关于Jquery $("#checked").attr("checked") 无效的问题使用情景: 使用 Jquery 实时验证 input checkbox 是否被选中?$("#checkedElem")... 阅读全文
posted @ 2015-01-08 00:39 xinpureZhu 阅读(403) 评论(0) 推荐(0) 编辑