0
我想使用基於窗口大小(手機或只是非常小的桌面瀏覽器窗口)的幾個樣式表。這既不工作。也就是說,我只能看到1024 + .css的樣式有人可以幫我嗎?媒體查詢不起作用
<!-- small display -->
<link rel="stylesheet" type="text/css" media="only screen and (max-width: 480px), only screen and (max-device-width: 480px)" href="resources/styles/small_device.css" />
<!-- widescreen -->
<link rel="stylesheet" type="text/css" href="resources/styles/1024+.css" />
謝謝
啊!好的。這很有道理。謝謝。 – 1252748
或者,如果您打算將1024+樣式設置爲「基本」樣式表,則只需將其移動到設備媒體查詢的上方即可。 – BoltClock