摘要: /// /// /// /// 要截取的字符串 /// 截取的位数 /// public string SubStr(string str, int num) { if (str.Length =$strlength){return$str;//截取长度等于0或大于等于本字符串的长度,返回字符串本身}elseif($length$sublen)returnjoin('',array_slice($t_string[0],$start,$sublen))."...";returnjoin('',array_slice($t_string[... 阅读全文
posted @ 2013-03-31 16:22 shouqiang Wei 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 为了保证能看到不同状态下的连接样式,正确的样式顺序应该是:" link - visited - hover - active "或" LVHA "(缩写)。A:link {color: blue;} /* specificity = 1,1 */A:active {color: red;} /* specificity = 1,1 */ A:hover {color: magenta;} /* specificity = 1,1 */ A:visited {color: purple;} /* specificity = 1,1 */ 阅读全文
posted @ 2013-03-31 15:47 shouqiang Wei 阅读(229) 评论(0) 推荐(0) 编辑