今天下载Google的一张图,截了里面约1/100的面积,另存为PNG,结果尺寸为40K,比原来的整张图还大3倍,惊讶不已。用pngcrush后可压缩到1/10大小。好东西!
http://pmt.sourceforge.net/pngcrush/
手机:
@media only screen and (min-device-width: 480px){ /* css样式 */ }
平板:
@media only screen and (min-device-width: 768px){ /* css样式 */ }
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
这是一个可笑的问题,要花时间解决这么可笑的问题,体现了中美IT效率的差距。
SELECT * FROM
(
SELECT *, MAX(field) AS max_field
FROM mytable
GROUP BY field_id
) t
ORDER BY max_field
其中,field,field_id应替换成具体的列名,mytable替换成具体的表名
display: inline-block;
*display: inline; // 星号表示专用于IE7及以下的浏览器
zoom: 1;
还可以考虑加入引用改CSS的条件(但不是必须)
<!–-[if IE 7]>
<link rel="stylesheet" href="ie7.css" type="text/css" />
<![endif]–->
var seconds = new Date().getTime() / 1000;
<input type="text" value="3" class="field left" readonly>
.content {
width: 100%;
box-sizing: border-box;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
热门内容
最新内容
- 1 day 17 hours ago
- 1 day 19 hours ago
- 4 days 18 hours ago
- 4 days 18 hours ago
- 4 days 18 hours ago
- 4 days 18 hours ago
- 5 days 19 hours ago
- 3 weeks 1 day ago
- 1 month ago
- 1 month ago
最新评论