摘要: textarea{ resize:none; width:200px; height:100px; max-height:100px; max-width:200px; overflow:auto; /*使不显示滚动条*/} 阅读全文
posted @ 2012-02-23 15:17 码农13 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 上游:交互设计师、视觉设计师中游:前端开发工程师下游:服务器端工程师1. 欲精一行,先通十行。尤其是做前端的2. 增加代码可读性----注释,别让自己都看不懂自己的代码3. 提高重用性----公共组件和私有组件的维护,要搞清楚 公共组件:让接口保持弹性,高度模块化; 公共组件的加载粒度:jQuery选择了“集中”,YUI选择了“分散”。 按需加载才是主流,多感受下YUI,import4. 前期的构思:规范、文档、公共组件、复杂功能的设计方案5. 自己能独立决策的问题都是小问题,要与人合作商讨的问题才可能会是最大的问题,要学会有效地交流。Web前端工程师技能列表:http://www.awfla 阅读全文
posted @ 2012-02-23 15:11 码农13 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 如果不清除浮动,老三会跟在老二屁股后面<p style="float:left;width :400px;">这个是第1列,</p> <p style="float:left;width :400px;">这个是第2列,</p> <p style="clear:both;">这个是列的下面。</p> float和absolute会让元素以inline-block方式显示,再显示地设置display为inline或block也无效。所以可以定义元素尺寸。 阅读全文
posted @ 2012-02-23 15:01 码农13 阅读(123) 评论(0) 推荐(0) 编辑
摘要: float:left;margin:5px; /*IE6下会理解为10px*/display:inline;/*让它理解为5px*/ 阅读全文
posted @ 2012-02-23 14:57 码农13 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-02-23 14:50 码农13 阅读(152) 评论(0) 推荐(0) 编辑
摘要: [PHP];;;;;;;;;;;;;;;;;;;; About php.ini ;;;;;;;;;;;;;;;;;;;;; PHP's initialization file, generally called php.ini, is responsible for; configuring many of the aspects of PHP's behavior.; PHP attempts to find and load this configuration from a number of locations.; The following is a summary 阅读全文
posted @ 2012-02-23 14:19 码农13 阅读(805) 评论(0) 推荐(0) 编辑
摘要: function getConnection(){ @mysql_connect("localhost","username","password") or die("无法连接数据库"); @mysql_select_db("databasename") or die("未找到数据库"); }getConnection(); $query="select definition,accession,gi from birds_nucleotide order by d 阅读全文
posted @ 2012-02-23 14:04 码农13 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 文件目录:--index.php--php--data_info.phpindex.php这里要require_once类所在的php文件<?phprequire_once('./php/data_info.php'); $oneData=new user; $oneData->setName("username"); $oneData->setPassword("password"); echo $oneData->getName(); echo $oneData->getPassword();?>d 阅读全文
posted @ 2012-02-23 14:00 码农13 阅读(321) 评论(0) 推荐(0) 编辑
摘要: php textarea中的换行符为"\r\n"不是'\n'不是"<br />"不是'\r\n'不是'\r'+'\n' 阅读全文
posted @ 2012-02-23 13:56 码农13 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 本函数可能理论上说有些不地道,把utf-8的中文字符和char一视同仁,都按长度为1计算function string_substring($string,$start,$length) { $countstart=0; $countlength=0; $printstring=""; for($i=0;$i<strlen($string);$i++) { while($countstart<$start) { $countstart++; if(ord(substr($string,$i,1))>128) { $i+=3; } else{ $i++; } 阅读全文
posted @ 2012-02-23 13:54 码农13 阅读(178) 评论(0) 推荐(0) 编辑