2013年7月12日

有趣的时钟

摘要: 阅读全文

posted @ 2013-07-12 13:27 空山幽泉 阅读(251) 评论(0) 推荐(0) 编辑

2013年5月7日

圆角 CSS

摘要: .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { border-bottom-right-radius: 4px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { border-bottom-left-radius: 4px; } .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr ... 阅读全文

posted @ 2013-05-07 14:34 空山幽泉 阅读(120) 评论(0) 推荐(0) 编辑

2013年4月23日

CSS 清除浮动

摘要: <style>.clearfix:after{ visibility: hidden; display: block; font-size: 0; content: "."; clear: both; height: 0;}* html .clearfix{zoom: 1;}*:first-child + html .clearfix{zoom: 1;}</style><div class="clearfix" style="border: 2px solid red;"> <div styl 阅读全文

posted @ 2013-04-23 18:11 空山幽泉 阅读(111) 评论(0) 推荐(0) 编辑

PHP getenv() 获取IP

摘要: <?php function GetIP(){ if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) $ip = getenv("HTTP_CLIENT_IP"); else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR") 阅读全文

posted @ 2013-04-23 17:00 空山幽泉 阅读(555) 评论(0) 推荐(0) 编辑

2013年3月25日

解决表格中英文字符过多出现将边框撑大弄乱布局的问题

摘要: 在做页面布局时,很多时候输入超出布局文字显示区域宽框度的字数时布局往往会被超出的打乱,然后又得调整布局页面,当调整好,输入好多的汉字,测试之,没问题。一切貌似OK了。但是,突然有一天有人告诉你那天的bug又重现了后,心烦。。。。发现原来某某人输入的是很多的字母,唉,杯具啊,怎么有这样极品的人啊~,没办法继续查资料解决。。。。 查资料...ing... 终于,把几句找来的代码拼成一个css的class,把问题解决了,不知道还有没有那种极品的人在重现这个bug...hahahhahh. 怨言发了,牛吹了,代码还是要附上滴。。。。.ct{ word-break: break-all;... 阅读全文

posted @ 2013-03-25 21:37 空山幽泉 阅读(341) 评论(0) 推荐(0) 编辑

2013年1月30日

自己实现的一个针对MySQL的Python 数据库组建

摘要: #-*- coding:utf8 -*-import MySQLdbimport dbhashclass DbManager(): dbConf = { 'host': 'localhost', 'user': '用户', 'password': '数据库密码', 'db_name': '数据库名称', 'port': 3306, 'charset': 'utf8', } def connect(self): #获取数据 阅读全文

posted @ 2013-01-30 11:37 空山幽泉 阅读(233) 评论(0) 推荐(0) 编辑

2013年1月28日

js 获取/设置文本输入域内光标的位置的方法

摘要: /** * 设置光标在短连接输入框中的位置 * @param inputId 框Id * @param pos * @return {*}s */ function setCursorPos(inputId, pos){ var inpObj = document.getElementById(inputId); if(navigator.userAgent.indexOf("MSIE") > -1){ var range = document.selection.createRange()... 阅读全文

posted @ 2013-01-28 16:29 空山幽泉 阅读(8536) 评论(0) 推荐(0) 编辑

2013年1月25日

curl抓取http头中Location中指明的url

摘要: curl抓取http头中Location中指明的url 让curl递归的抓取http头中Location中指明的url。 当抓取次数超过CURLOPT_MAXREDIRS时,递归将终止。 在抓取中任何跳转带来的问题,都可通过设置此参数解 阅读全文

posted @ 2013-01-25 11:22 空山幽泉 阅读(2668) 评论(0) 推荐(0) 编辑

HTML5中的 placeholder 属性

摘要: HTML5中的 placeholder 属性 阅读全文

posted @ 2013-01-25 10:54 空山幽泉 阅读(528) 评论(0) 推荐(0) 编辑

2013年1月24日

MySQL简单自动执行存储过程模板

摘要: MySQL简单自动执行存储过程模板MySQL 阅读全文

posted @ 2013-01-24 17:54 空山幽泉 阅读(3797) 评论(0) 推荐(0) 编辑

导航