2013年1月15日

不错的VS2010扩展——JSEnhancements,让js和css也折叠

摘要: 在Visaul Studio 2010中写js或css代码,缺少像写C#代码时的那种折叠功能,当代码比较多时,就很不方便。今天发现,已经有VS2010扩展支持这个功能,它就是——JSEnhancements(下载地址)。用了一下,感觉不错,定义region,只需将#region写在注释中即可。请看下面的演示:先看JavaScript未使用JSEnhancements的情况:1. 使用JSEnhancements之后(未定义region):折起展开2. 使用JSEnhancements之后(定义了region):折起展开再来看看CSS全部折起展开region全部展开其他针对JavaScript的 阅读全文

posted @ 2013-01-15 15:11 陌路天堂 阅读(152) 评论(0) 推荐(0)

2013年1月14日

设置Iframe相对高度和宽度,兼容所有浏览器

摘要: _width:100%;_height:expression(document.body.offsetHeight-119+'px');主要是关键的这个expression(document.body.offsetHeight); 阅读全文

posted @ 2013-01-14 16:52 陌路天堂 阅读(206) 评论(0) 推荐(0)

添加loading 等待加载按钮

摘要: 一般我们应用到ajax方法调用,需要添加等待效果,增加用户体验<div id="loading" style="position: absolute; left: 0; right: 0; bottom: 0; top: 0; background: url(/images/loading2.gif) #666666 center center no-repeat; z-index: 9999; filter: alpha(Opacity=60); -moz-opacity: 0.5; opacity: 0.5; display:block;"&g 阅读全文

posted @ 2013-01-14 16:50 陌路天堂 阅读(278) 评论(0) 推荐(0)

导航