By admin, 1 三月, 2015

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;
}

标签

By admin, 25 二月, 2015

SELECT * FROM
(
  SELECT *, MAX(field) AS max_field
  FROM mytable
  GROUP BY field_id
) t
ORDER BY max_field

其中,field,field_id应替换成具体的列名,mytable替换成具体的表名

标签

By admin, 25 二月, 2015

display: inline-block;

*display: inline; // 星号表示专用于IE7及以下的浏览器

zoom: 1;

 

还可以考虑加入引用改CSS的条件(但不是必须)

<!–-[if IE 7]>

<link rel="stylesheet" href="ie7.css" type="text/css" />

<![endif]–->

 

标签