?程序員在開發(fā)程序的時候,都要根據(jù)瀏覽器類型的屏幕分辨率自動調(diào)用不同的CSS代碼,下面是錯新技術頻道小編為大家搜集的相關介紹,希望對你學習這方面知識有幫助!
<head>
<script?language=javascript>?
<!--
if?(screen.width?==?800)
{
document.write('<link?rel=stylesheet?type="text/
css"?href="css800.css">')
}
else?{document.write('<link?rel=stylesheet?type="text/css"?href="css1024.css">')}
//-->
</script>
</head>