上一页 1 ··· 7 8 9 10 11
摘要: IE6,IE7下设置透明度Opacity的Bug时间:发生在 2010年01月6日 的那天 去打手印哦 (3)今天在写一个跨浏览器的setOpacity设置HTML元素的透明度函数的时候,函数代码如下:var setOpacity = function(elem, l){if (elem.filters) {elem.style.filter ="alpha(opacity="+l+")";} else {elem.style.opacity = l / 100;}}//Example:onload=function(){setOpacity(docum 阅读全文
posted @ 2011-08-24 17:03 bert.zeng 阅读(3177) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="Content-Type" content=&q 阅读全文
posted @ 2011-07-08 01:34 bert.zeng 阅读(631) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-07-08 01:28 bert.zeng 阅读(10) 评论(0) 推荐(0)
摘要: .创建XMLHttpRequest对象 var xmhttp; if(windows.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } //ie5或 ie6 创建.向服务器发送请求 xmlhttp.open("GET","test.txt",true);//open(method,url,async) method:请求的类型(GET或POST) url:文件在服务器上的位 阅读全文
posted @ 2011-04-15 21:15 bert.zeng 阅读(134) 评论(0) 推荐(0)
摘要: 外部样式表: <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> 内部样式表: <head> <style type="text/css"> body {background-color: red} p {margin-left: 20px} </style> </head> 内联样式: <p style="color: 阅读全文
posted @ 2011-04-15 21:12 bert.zeng 阅读(371) 评论(0) 推荐(0)
摘要: 1.分行; (可不写)2.顺序执行3. 注释 单行:// 多行: /* ... */<script type="text/javascript">document.write("<h1>This is a header</h1>");document.write("<p>This is a paragraph</p>");//document.write("<p>This is another paragraph</p>"); &l 阅读全文
posted @ 2011-04-15 21:11 bert.zeng 阅读(130) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11