摘要: 1.水平居中<style type="text/css"> .className{ width:270px; height:150px; margin:0 auto;}</style>2.水平垂直居中 css写法 <style type="text/css"> .className{ width:270px; height:150px; position:absolute; left:50%; top:50%; margin:-75px 0 0 -135px;} </style>3.水平垂直居中 js写法& 阅读全文
posted @ 2011-06-09 17:16 cxfzxj9898 阅读(360) 评论(0) 推荐(0)
摘要: 字符串函数扩充 //******************************************//去除左边的空格String.prototype.LTrim = function(){ return this.replace(/(^\s*)/g, "");}//******************************************// 去除右边的空格String.prototype.Rtrim = function(){ return this.replace(/(\s*$)/g, "");}//***************** 阅读全文
posted @ 2011-05-04 12:53 cxfzxj9898 阅读(262) 评论(0) 推荐(0)