[·Qªk] @supports query selector ÂX¥R¨ì¾ã­Ó w3 ¼Ð·Ç

²³æ¨Ó»¡¡A²¾´Ó (?) ±N Modernizr ¦b CSS ¤W­±ªº§@ªk¨ì @supports ¨Ó°µ¥XÂsÄý¾¹¤£¦P¤ä´©ªº°Ï¤À¡C

CSS3 ¨ä¹ê¤w¸g¦³ @supports query selector¡A¦ý¬O¶È­­©ó¤£¦P CSS ¤ä´©ªº®t²§¡A§Ú­Ì¤£¯àª¾¹DÂsÄý¾¹¬O§_¤ä´©
HTML5 ªº¨ä¥L¯S©Ê¡C[1]

Á|¨Ò¡G

@supports video-webm{
/* shows your browser supports webm etc. */
}


@supports webgl{
/* webgl support etc. */
}

@supports svg{
/* svg image substitute */
}

@supports touch-min:2 {
/* multitouch-able interface for tablets and touch screens */
}

[1]: http://www.w3.org/html/ig/zh/wiki/Css3-conditional#6..E7.89.B9.E6.80.A7.E6.9F.A5.E8.AF.A2.EF.BC.9A.E2.80.98.40supports.E2.80.99.E8.A7.84.E5.88.99

-- 
Yao Wei

Received on Thursday, 6 September 2012 04:04:19 UTC