03 2012 档案

常用css笔记
摘要:css透明度,多浏览器兼容div.transp { /* make the div translucent */ opacity: 0.6; /* Firefox, Safari(WebKit), Opera) */ filter: "alpha(opacity=60)"; /* IE 8 */ filter: alpha(opacity=60); /* IE 4-7 */ zoom: 1; /* needed in IE up to version 7, or set width or height to trigger "hasLayout" */ 阅读全文

posted @ 2012-03-23 09:29 ayao 阅读(158) 评论(0) 推荐(0) 编辑

javascript获取iframe框架中加载的页面document对象
摘要:javascript获取iframe框架中,加载的页面document对象因为浏览器安全限制,对跨域访问的页面,其document对象无法读取、设置属性 function getDocument(iframe) { var Doc; try{ Doc = iframe.contentWindow.document;// For IE5.5 and IE6 } catch(ex){} if(!Doc) { Doc = iframe.contentDocument;// For NS6 } return Doc; } 阅读全文

posted @ 2012-03-15 14:00 ayao 阅读(3387) 评论(0) 推荐(0) 编辑

javascript访问json数据简单入门例子
摘要:<html><head> <title>javascript访问json数据简单入门例子</title></head><body> <script type="text/javascript"> var json; window.onload = function() { //初始化字符串格式的json数据 var s = "[{name:'张三',sex:'男'},{name:'李四',sex:'女'}]" 阅读全文

posted @ 2012-03-01 16:49 ayao 阅读(493) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示