摘要: 1 //第一题 1. 2 $('#selected-plays>li>ul>li').addClass('special'); 3 //2. 4 $('li').children().find('li').addClass('special'); 5 6 //第二题 7 $('tr').find('td:eq(2)'... 阅读全文
posted @ 2013-11-29 15:55 我只是程序员 阅读(268) 评论(0) 推荐(0) 编辑
摘要: .big{margin-top:400px;margin-left:200px;height:120px;width:400px;background-color:#F8F8F8;border:1px solid #EFE7B6;border-radius:3px 3px 3px 3px;}.arr 阅读全文
posted @ 2012-10-27 22:34 我只是程序员 阅读(929) 评论(0) 推荐(0) 编辑
摘要: // POSIX风格的正则表达式//用于简单的搜索和匹配1.int ereg( string pattern , string str [ , array regs ]) :搜索成功则返回正数,否则返回负数。该函数是区分大小写的2.int eregi( string pattern , string 阅读全文
posted @ 2012-08-19 00:06 我只是程序员 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 注意:如$str="this is a book!";我们有$str[0]或$str{0}表示"t",以此类推的说法哈//去除空格和其他符号1. string trim(string str [ , string charlist] ) :两边去空格或其它字符2. string ltrim( str 阅读全文
posted @ 2012-08-17 23:55 我只是程序员 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1.boolean sort(array target_array [,int sort_flags]) :按数字和字母的顺序排序2.boolean rsort(array target_array [,int sort_flags]) :以降序对数组元素进行排序3.void asort(array 阅读全文
posted @ 2012-08-16 22:42 我只是程序员 阅读(293) 评论(0) 推荐(0) 编辑
摘要: <?php //print,echo函数print "这是我的第一个程序<br>";$word="这是我的第二个程序<br>";print $word;echo "第3个程序<br>";//printfprintf("%'*10.2f",456.7);echo "<br>";printf("%b", 阅读全文
posted @ 2012-08-10 22:30 我只是程序员 阅读(116) 评论(0) 推荐(0) 编辑
摘要: <html><head><title>分页</title></head><body><?php//连接数据库$conn=mysql_connect("localhost","root","123456"); mysql_select_db("test",$conn); mysql_query("se 阅读全文
posted @ 2012-08-09 15:50 我只是程序员 阅读(145) 评论(0) 推荐(0) 编辑
摘要: //运行前,你的电脑需要可以运行php的环境,下面,是我的一些做法 //这个是一个运行时的页面 //show.html 名字 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/ht 阅读全文
posted @ 2012-08-08 10:48 我只是程序员 阅读(240) 评论(0) 推荐(0) 编辑
摘要: <?php header("Content-type:image/png"); //$num=$_GET['num']; 这里本来是想获取的,但是为了方便显示,用了下面一条语句直接得到了。 $num="we5523"; $imagewidth=80; $imageheight=18; $numima 阅读全文
posted @ 2012-08-07 16:22 我只是程序员 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 下面先是Style css的代码。只是修改和增加了部分css,对有些浏览器的不兼容,我做了重新的定位 <style type="text/css">*{margin:0px; padding:0px;}/*将所有标签的默认边距等全置为零*/ #posi{ /*这个是我们新增的一个div,用来将所有的 阅读全文
posted @ 2012-05-01 10:12 我只是程序员 阅读(164) 评论(0) 推荐(1) 编辑