// target mobile devices@media only screen and (max-device-wIDth: 480px) { body { max-wIDth: 100%; }}// recent Webkit-specific media query to target the iPhone 4's high-resolution Retina display@media only screen and (-webkit-min-device-pixel-ratio: 2) { // CSS goes here}// should technically achIEve a similar result to the above query,// targeting based on screen resolution (the iPhone 4 has 326 ppi/dpi)@media only screen and (min-resolution: 300dpi) { // CSS goes here}
你也可以用HTML定义
<link rel="stylesheet" media="only screen and (max-device-wIDth: 480px)" href="CSS/mobile.CSS" type="text/CSS" /><link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" href="CSS/mobile.CSS" type="text/CSS" /><link rel="stylesheet" media="only screen and (min-resolution: 300dpi)" href="CSS/mobile.CSS" type="text/CSS" />总结
以上是内存溢出为你收集整理的android – 特定于浏览器的移动浏览器CSS全部内容,希望文章能够帮你解决android – 特定于浏览器的移动浏览器CSS所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)