用css设置某个div最小height,然后再自适应height,这里有个不错的解决办法。看代码先:min-height:400px; //(解决ie8.9.ff.chrome)*+height:100%; //(解决ie7)_height:400px; //(解决ie6) ie6超出自动溢出代码都有注释,只为了大家能看的更清晰更明白,因为有写同学不太了解hack的处理方式。下面是无注释版,复制就能用的:min-height:400px;*+height:100%;_height:400px;这种方式还是不错的,当然还有其它处理方法可以解决这样的小问题,有兴趣的同学可以深入研究下。hack真的只是个小问题,前端开发更注重的应该是效率和交互。还有一个以前经常用的方法,只是自己老不记得:min-height:400px; height:auto!important; height:400px;
截止2014年9月前已开放和未开放的号码段如下图所示:那么相对应的判断手机号码的正则表达式如下:public static boolean isMobilePhone(String phone){Pattern pattern = Pattern.compile("^((13[0-9])|(14[5,7])|(15[^4,\\D])|(17[6-8])|(18[0-9]))\\d{8}$");Matcher matcher = pattern.matcher(phone);return matcher.matches();}转自:http://blog.csdn.net/diyangxia/article/details/39494299
首先,我这里使用的是七牛的CDN加速。所以代码里面用的就是七牛的。要修改的地方很简单,就一处。找到 /var/Widget/Abstract 下的 Comments.php 文件,约397行,找到以下的代码:$url = Typecho_Common::gravatarUrl($this->mail, $size, $rating, $default, $this->request->isSecure());将这一行注释掉,替换成以下代码:$mailHash = NULL;if (!empty($this->mail)) {$mailHash = md5(strtolower($this->mail));}$url = 'http://***.clouddn.com/avatar/';if (!empty($this->mail)) {$url .= $mailHash;}$url .= '.jpg';然后保存覆盖下文件,效果就出来了。有一个大前提,是需要将七牛设置镜像指向你的博客才可以。
JQuery的选择器大概归纳为9种。(1)基本#idelement.class*selector1,selector2,selectorN(2)层次选择器:ancestordescendantparent>childprev+nextprev~siblings(3)基本过滤器选择器:first:last:not:even:odd:eq:gt:lt:header:animated(4)内容过滤器选择器:contains:empty:has:parent(5)可见性过滤器选择器:hidden:visible(6)属性过滤器选择器[attribute][attribute=value][attribute!=value][attribute^=value][attribute$=value][attribute*=value][attrSel1][attrSel2][attrSelN](7)子元素过滤器选择器:nth-child:first-child:last-child:only-child(8)表单选择器:input:text:password:radio:checkbox:su