吴启华Blog » ≮┄程序┄≯ - 用心感受生活……

区别不同浏览器,CSS hack写法

Author:唯一 Date:2007-06-25 View:533 views

区别IE6与FF:
background:orange;*background:blue;

区别IE6与IE7:
background:green !important;background:blue; Read the rest of this entry »

常用的CSS命名规则

Author:唯一 Date:2007-06-19 View:383 views

头:header
内容:content/container
尾:footer
导航:nav
侧栏:sidebar
栏目:column
页面外围控制整体布局宽度:wrapper
左右中:left right center
登录条:loginbar
标志:logo
广告:banner
页面主体:main
热点:hot
新闻:news
下载:download
子导航:subnav
菜单:menu
子菜单:submenu
搜索:search
友情链接:friendlink Read the rest of this entry »

zend studio 5.5 改为简体中文版的办法

Author:唯一 Date:2007-06-10 View:1,059 views

直接修改其配置文件:

c:\Documents and Settings\{User}\ZDE\config_5.{x}\desktop_options.xml

其中:

<customized_property ID=”desktop.language”>
<locale language=”en” country=”" variant=”"/>
</customized_property>

把en修改为 cn,或者改为 zh 就可以了。

Read the rest of this entry »

完美兼容ie 6 ie7 firefox

Author:唯一 Date:2007-04-01 View:3,920 views

一、CSS HACK
以下两种方法几乎能解决现今部分HACK.
1, !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK. (注意写法.记得该声明位置需要提前.)

#wrapper{ width: 100px!important; /* IE7+FF */ width: 80px; /* IE6 */ }

2, IE6/IE77对FireFox *+html 与 *html 是IE特有的标签, firefox 暂不支持.

#wrapper { #wrapper { width: 120px; } /* FireFox */ *html #wrapper { width: 80px;} /* ie6 fixed */ *+html #wrapper { width: 60px;} /* ie7 fixed */ }

Read the rest of this entry »

mysql数据库常用导出导入命令的几个用例

Author:唯一 Date:2007-02-08 View:441 views

几个常用用例:

1.导出整个数据库
mysqldump -u 用户名 -p 数据库名 > 导出的文件名
mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql
2.导出一个表
mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名
mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql
3.导出一个数据库结构
mysqldump -u wcnc -p -d –add-drop-table smgp_apps_wcnc >d:\wcnc_db.sql

-d 没有数据 –add-drop-table 在每个create语句之前增加一个drop table

4.导入数据库
常用source 命令
进入mysql数据库控制台,
如mysql -u root -p

mysql>use 数据库

然后使用source命令,后面参数为脚本文件(如这里用到的.sql)
mysql>source d:\wcnc_db.sql

5 导入数据到文本

echo “select .. from …” | mysql -u 用户名 数据库名 -p > tmp.txt