靡不有初 鲜克有终

2016年7月1日

摘要: 写成类的方法格式如下:(str.trim();) <script language="javascript"> String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototyp 阅读全文
posted @ 2016-07-01 14:43 黑睡莲 阅读(1215) 评论(1) 推荐(0) 编辑
 
摘要: 如果left >= right或者bottom <= top,则元素会被完全裁掉而不可见,即“隐藏”。通过这种方式隐藏的元素是可以被屏幕阅读器等辅助设备识别的,从而提高了页面的可用性。 Img{position:absolute;clip:rect(top right bottom left)} 阅读全文
posted @ 2016-07-01 13:20 黑睡莲 阅读(389) 评论(0) 推荐(0) 编辑
 
摘要: <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <style> .trans-fadeout{ -webkit-transition:all 1s linear; -moz-transition:al 阅读全文
posted @ 2016-07-01 13:14 黑睡莲 阅读(518) 评论(0) 推荐(0) 编辑
h e l l o   w o r l d