会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
靡不有初 鲜克有终
黑睡莲
Listen to my heart Looking for my dream
博客园
首页
新随笔
联系
订阅
管理
2016年7月1日
js去空格
摘要: 写成类的方法格式如下:(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)
编辑
clip 属性剪裁绝对定位元素
摘要: 如果left >= right或者bottom <= top,则元素会被完全裁掉而不可见,即“隐藏”。通过这种方式隐藏的元素是可以被屏幕阅读器等辅助设备识别的,从而提高了页面的可用性。 Img{position:absolute;clip:rect(top right bottom left)}
阅读全文
posted @ 2016-07-01 13:20 黑睡莲
阅读(389)
评论(0)
推荐(0)
编辑
css实现隐藏显示
摘要: <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