IE6 A颜色

摘要: 这个时候 在 IE6 下在Firebug Lite 下的 style模式 在 computed模式下把 css 改成这时就可以了!A标签下的内容显示成红色了! 阅读全文
posted @ 2010-11-13 10:46 frouds 阅读(1059) 评论(0) 推荐(0) 编辑

CSS盒模型

摘要: 阅读全文
posted @ 2010-11-05 12:14 frouds 阅读(132) 评论(0) 推荐(0) 编辑

为表格里每个td设置黑色边框

摘要: 为表格里每个td设置黑色边框 阅读全文
posted @ 2010-10-23 13:26 frouds 阅读(354) 评论(0) 推荐(0) 编辑

浮动在两边的条幅

摘要: 支持IE6,7,8 和 FF,暂不支持Chrome 阅读全文
posted @ 2010-10-18 15:35 frouds 阅读(217) 评论(0) 推荐(0) 编辑

Python 2.6 字符编码转换

摘要: 在Python中有两个和字符很相关的类型,一个是str类型,一个是unicode类型。这两种类型的对象都是sequece序列,其中str是字节序列,而unicode是字符序列decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode('gb2312'),表示将gb2312编码的字符串str1转换成unicode编码。 encode的作用是将unicode编码转换成其他... 阅读全文
posted @ 2010-10-17 17:52 frouds 阅读(3984) 评论(0) 推荐(0) 编辑

Rails执行migrate时出现错误 Mysql::Error: query: not connected

摘要: D:\Rails\depot>rake db:migrate(in D:/Rails/depot)rake aborted!Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB(See full trace by ... 阅读全文
posted @ 2010-10-10 09:51 frouds 阅读(1043) 评论(0) 推荐(0) 编辑

百度地图 地图拖动结束时显示地图中心

摘要: map.addEventListener("dragend",function(){    var centerPoint=map.getCenter();    alert(centerPoint.lng + " " +centerPoint.lat);}); 阅读全文
posted @ 2010-09-11 13:35 frouds 阅读(1256) 评论(0) 推荐(0) 编辑

百度留言板 和 flash 冲突的 解决方法

摘要: 百度留言板 和flash 冲突 致使留言板被遮住,这个时候在 flash里加条代码 <param name="wmode" value="opaque" /> 就可以了! 阅读全文
posted @ 2010-09-07 15:07 frouds 阅读(185) 评论(0) 推荐(0) 编辑

asp实现UNIX时间戳功能

摘要: asp实现UNIX时间戳功能utime = DateDiff("s", "1970-1-1 8:00:00", Now())注:为什么不是”1970-1-1 00:00:00″ 而是 “1970-1-1 8:00:00″呢?windows和linux下的时间戳总是相差8小时。。。var Dbdate=new Date(Date.parse(data.... 阅读全文
posted @ 2010-08-13 09:22 frouds 阅读(990) 评论(0) 推荐(0) 编辑

scrollLeft 返回和设置当前横向滚动务的坐标值

摘要: scrollLeft 返回和设置当前横向滚动务的坐标值 阅读全文
posted @ 2010-08-03 09:25 frouds 阅读(284) 评论(0) 推荐(0) 编辑