
web
chinahnzhou
这个作者很懒,什么都没留下…
展开
-
CSS的4个简写
1.background 简写属性在一个声明中设置所有的背景属性:background-colorbackground-imagebackground-repeatbackground-attachmentbackground-position例如: background: #444444 url(image.png) no-repeat fixed top;...原创 2012-01-09 14:34:35 · 135 阅读 · 0 评论 -
优秀企业网站欣赏
优秀企业网站欣赏 以下是由知名的专家评选出来的国内优秀企业网站: 蒙牛集团http://www.mengniu.com.cn/index.asp很喜欢那个导航条,整个页面也很有韩国风味,给人很清新的感觉 海尔集团http://www.haier.com/cn/index.asp红色很醒目,也很自然. 可口可乐http...原创 2012-03-16 08:58:56 · 3807 阅读 · 0 评论 -
简洁tab
<!-- 引用时保留下原创作者喽,尊重任何一位原创作者,促进中国互联网进程 Editor:weasle Email:weasle@163.com QQ:112011531 --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Cont...原创 2012-03-16 09:00:26 · 127 阅读 · 0 评论 -
原生态ajax
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>My JSP 'testAjax.jsp' starting page</title><script type="text/javas原创 2012-03-16 09:02:28 · 110 阅读 · 0 评论 -
如何去掉热点链接点击时的黑框或虚边
a,area { blr:expression(this.onFocus=this.blur()) } /* for IE */:focus { -moz-outline-style: none; } /* for Firefox */a { outline:none; } /* for FF Chrome */原创 2012-10-28 21:07:52 · 595 阅读 · 0 评论 -
ie firebug
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T)...原创 2012-07-23 17:20:01 · 103 阅读 · 0 评论 -
html table 边框
<html><head> <style> table{border-collapse:collapse;border-spacing:0;border-left:1px solid #888;border-top:1px solid #888;background:#efefef;} th,td{border-r...原创 2012-09-25 10:26:01 · 160 阅读 · 0 评论 -
JavaScript trim函数大赏
http://www.cnblogs.com/rubylouvre/archive/2009/09/18/1568794.htmlW3C那帮人的脑袋被驴踢了,直到javascript1.8.1才支持trim函数(与trimLeft,trimRight),可惜现在只有firefox3.5支持。由于去除字符串两边的空白实在太常用,各大类库都有它的影子。加之,外国人都很有研究精神,搞鼓了相...原创 2012-09-26 09:37:47 · 132 阅读 · 0 评论 -
js验证身份证
/*Author:yufulongBlog:http://www.xiaoxiaozi.com*/var vcity = {11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古", 21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:&原创 2012-09-26 16:38:46 · 125 阅读 · 0 评论 -
为什么要用cdn
页面性能优化(CDN)http://lab.wehefei.com/posts/172http://blog.b3inside.com/essay/build-your-cdn-with-google-app-engine/原创 2012-03-15 09:24:58 · 105 阅读 · 0 评论 -
css编写
a:link{color:#000000; text-decoration:none;}a:hover{color:#000000; text-decoration:none;}a:active{color:#000000; text-decoration:none;}a:visited{color:#000000; text-decoration:none;} 定义某个层下面...原创 2012-03-15 09:24:39 · 96 阅读 · 0 评论 -
js里面 0 =='' 0 == false
js里面 0 =='' 0 == false <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Ty...原创 2012-03-09 15:00:28 · 628 阅读 · 0 评论 -
前端性能优化
1. 请减少HTTP请求 基本原理: 在浏览器(客户端)和服务器发生通信时,就已经消耗了大量的时间,尤其是在网络情况比较糟糕的时候,这个问题尤其的突出。 一个正常HTTP请求的流程简述:如在浏览器中输入"www.xxxxxx.com"并按下回车,浏览器再与这个URL指向的服务器建立连接,然后浏览器才能向服务器发送请求信息,服务器在接受到请求的信息后再返回相应的信息,浏览...原创 2012-01-09 14:42:08 · 105 阅读 · 0 评论 -
jquery常用代码汇总
1. 如何使用jQuery来切换样式表 //找出你希望切换的媒体类型(media-type),然后把href设置成新的样式表。 $('link[media='screen']').attr('href', 'alternative.css'); 2. 如何验证某个元素是否为空: // 方法一 if (! $('#keks').html()) { //什么都没有找到; } // ...原创 2012-01-09 14:50:43 · 156 阅读 · 0 评论 -
防止网页被iframe嵌套
<script type="text/javascript"> $(document).ready(function(){ if(self!=top){ top.location.href=document.URL; } });</script>原创 2012-01-10 15:21:13 · 152 阅读 · 0 评论 -
登录常用的js
<input type="text" class="inputstyle" maxlength="50" autocomplete="off" value="请输入用户名" onfocus="if(this.value=='请输入用户名') this.value=''; this.cla原创 2011-11-15 09:46:14 · 114 阅读 · 0 评论 -
防盗链小技巧
if(document.referer == "" || document.referer.indexOf("mysite.com") == -1)window.location= "http://www.mysite.com" ; http://www.ccxcn.com/blog/post/124.html http://blog.youkuaiyun.com/come...原创 2012-05-28 10:34:13 · 100 阅读 · 0 评论 -
js代码汇总
Javascript 返回上一页 1. history.go(-1), 返回两个页面: history.go(-2);2. history.back()3. window.history.forward()返回下一页4. window.history.go(返回第几页,也可以使用访问过的URL) JS引用JS <script type=te...原创 2012-02-23 17:00:40 · 111 阅读 · 0 评论 -
MIME多用途互联网邮件扩展(Multipurpose Internet Mail Extensions)
多用途互联网邮件扩展(MIME,Multipurpose Internet Mail Extensions)是一个互联网标准,它扩展了电子邮件标准,使其能够支持非ASCII字符、二进制格式附件等多种格式的邮件消息。 MIME type的缩写为(Multipurpose Internet Mail Extensions)代表互联网媒体类型(Internet media type)...原创 2012-02-24 10:05:33 · 603 阅读 · 0 评论 -
ajax动态效果
function FunAjax(){ $.ajax({ type: "POST", url: "jQueryAjaxTest.ashx", data: "begin=1&end=9", beforeSend: function(){ $("#span_content"...原创 2012-02-27 16:13:20 · 142 阅读 · 0 评论 -
html 中几次方,平方米,立方米,上标,下标,删除线等的表示方法
<sup>上标<sub>下标<del>删除线<small>小号字<ins>插入字M<sup>2</sup>5<sup>4</sup> <h1>X<sub>2<原创 2013-01-16 16:39:34 · 487 阅读 · 0 评论