WEB前端
夹克鹏
这个作者很懒,什么都没留下…
展开
-
CSS记录
图片大小限制 .pic img { vertical-align: middle; max-width: 125px; max-height: 125px; width: expression(this.width >125 && this.height height: expression(this.height > 125 ? 125: true); } 文字两端对齐原创 2011-09-22 14:09:59 · 492 阅读 · 0 评论 -
history.back()在IE6中失效的解决方法
返回 这种写法在IE6上无效,以前一直以为是a标签的问题,改变过很多次写法后找到以下两种解决方法: 1、直接在href中调用js,如下: 返回 2、在onclick事件中调用,并return false;,如下; 返回 如果a标签在调用的其他js方法中调用history.back时,在IE6上也会出现返回失效的问题,同样可以用以上两种写法来调用其他方法来解决,如:提交其中doS原创 2012-02-03 12:27:14 · 2575 阅读 · 2 评论 -
个人常用的JavaScript记录
/****** DWR设置为同步,在回调函数中可以操作主函数变量,之后再设为异步即可 ******/ DWREngine.setAsync(false); /****** 使用splice(索引位置,数量)方法移除数组中的元素 ******/ options.splice(i,1); /****** 获取纵向滚动条已滚动高度,横向滚动条类似 ******/ function get原创 2011-09-22 14:08:33 · 587 阅读 · 0 评论 -
Fckeditor API 详解
// 获取编辑器中HTML内容 function getEditorHTMLContents(EditorName) { var oEditor = FCKeditorAPI.GetInstance(EditorName); return(oEditor.GetXHTML(true)); } // 获取编辑器中文字内容 function getEditor原创 2012-02-02 12:30:10 · 913 阅读 · 0 评论