Android 移动样式表-仅在刷新时加载?
我有以下css调用:Android 移动样式表-仅在刷新时加载?,android,css,mobile,Android,Css,Mobile,我有以下css调用: <link rel="stylesheet" href="htlibery/desk_coupon_style.css" type="text/css"/> <link media="only screen and (max-device-width: 480px)" href="htlibery/mobile_coupon_style.css" type= "text/css" rel="stylesheet"> 在iphone上查看时,这
<link rel="stylesheet" href="htlibery/desk_coupon_style.css" type="text/css"/>
<link media="only screen and (max-device-width: 480px)" href="htlibery/mobile_coupon_style.css" type= "text/css" rel="stylesheet">
在iphone上查看时,这提供了正确的样式表
在我的三星android(captivate)上,它提供桌面版)
如果我点击“刷新”,则提供正确的样式表
任何想法
如果不知道,在页面加载时自动刷新的最佳方法是什么
谢谢到目前为止,我发现这(从)是最有效的
<!-- Mobile device detection by Bushido Designs: BushidoDesigns.net -->
<link rel="stylesheet" type="text/css" href="mobile.css" />
see note: <style type="text/css" media="screen and (min-width: 481px)"
<!--
@import url("screen.css");
-->
</style>
请参阅备注:这是一个猜测,但您是否尝试更改它们的链接顺序?您还可以将此查询字符串附加到href属性。“?v=2”这将确保它始终采用最新版本。@AlexMorales,我确实颠倒了顺序,但这没有帮助。。我会尝试版本属性,让你知道它是如何工作的。我将最小宽度调整为800px,这样当手机旋转时,它会使用移动css。。。这有意义吗?还是我在这里盲目黑客?
<link href="mobile.css" rel="stylesheet" type="text/css" media="handheld, only screen and (max-device-width: 480px)" />