摘要: 1、单击后文字变大显示获取值属性2、简单时钟获取当前本机时间<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> window.onload = function () { setTime(); } function setTime() { var div = document.getElementById("d1"); var tim 阅读全文
posted @ 2012-07-27 22:27 Fan帥帥 阅读(1987) 评论(0) 推荐(1) 编辑
摘要: 一行代码解决各种IE兼容问题,IE6,IE7,IE8,IE9,IE102012-04-25 16:29:04| 分类: 学习 |字号 订阅在网站开发中不免因为各种兼容问题苦恼,针对兼容问题,其实IE给出了解决方案Google也给出了解决方案百度也应用了这种方案去解决IE的兼容问题百度源代码如下<!Doctype html><html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml><head><meta http-equiv=Content-Type 阅读全文
posted @ 2012-07-27 21:01 Fan帥帥 阅读(34315) 评论(4) 推荐(3) 编辑
摘要: 1 1.取字符串长度 2 string str="中国"; 3 int Len=str.Length; //得到字符串的长度 4 2、字符串转为比特码 5 byte[] bytStr=System.Text.Encoding.Default.GetBytes(str); 6 len=bytStr.Length; 7 3.字符串相加 8 System.Text.StringBuilder sb=new System.Text.StringBuilder(); 9 sb.Append("中华"); 10 sb.Ap... 阅读全文
posted @ 2012-07-27 00:30 Fan帥帥 阅读(478) 评论(0) 推荐(0) 编辑