摘要: 请用百分比来规定变化发生的时间,或用关键词 "from" 和 "to",等同于 0% 和 100%。div{width:100px;height:100px;background:red;animation:myfirst 5s;-webkit-animation:myfirst 5s; /* Sa... 阅读全文
posted @ 2015-10-13 16:09 虫虫~ 阅读(87) 评论(0) 推荐(0) 编辑
摘要: div{transform: rotate(30deg);-ms-transform: rotate(30deg); /* IE 9 */-webkit-transform: rotate(30deg); /* Safari and Chrome */}1.translate()方法,根据左(X轴)... 阅读全文
posted @ 2015-10-13 15:33 虫虫~ 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 一、使用css实现.slh {width:200px;display: block;overflow: hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;}优点:简单易用缺点:如果设置 /*td, t... 阅读全文
posted @ 2014-11-30 11:17 虫虫~ 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 1. 请减少HTTP请求 基本原理: 在浏览器(客户端)和服务器发生通信时,就已经消耗了大量的时间,尤其是在网络情况比较糟糕的时候,这个问题尤其的突出。 一个正常HTTP请求的流程简述:如在浏览器中输入"www.xxxxxx.com"并按下回车,浏览器再与这个URL指向的服务器建立连接,... 阅读全文
posted @ 2014-11-21 19:57 虫虫~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-11-12 11:38 虫虫~ 阅读(223) 评论(0) 推荐(0) 编辑