ブラウザの解像度を調べてCSSを変更するためのjQueryスクリプトがあります。
if ((screen.width>=1024) && (screen.height>=768))
{
alert('Screen size: 1024x768 or larger');
$("link[rel=stylesheet]:not(:first)").attr({href : "detect1024.css"});
}
else
{
alert('Screen size: less than 1024x768, 800x600 maybe?');
$("link[rel=stylesheet]:not(:first)").attr({href : "detect800.css"});
}
});
実際の機能を知るのを手伝ってもらえますか?
とはどういう:not(:first)
意味ですか? 説明してください。
ありがとう。