我有两个媒体查询大小-
only screen and (min-width: 980px)and (max-width: 1499px)";
only screen and (min-width: 768px)and (max-width: 979px)";
Safari正在应用第二个媒体查询,而浏览器宽度仍在第一个媒体查询的范围内--当window.innerwidth在980-995之间时。
我从没见过这个-有什么想法吗?
更新-
因此,我发现了这个问题--新的OSX的媒体查询使用document.documentElement.clientWidth作为度量--而所有其
这是我的HTML代码,下面是jquery代码。
<div class="popup-overlay">
<div class="popup " id="first">
<div id="style-1" class="scrollbar">
<div class="wdth123">
<!-- some content here almost width of 500px height of 800px; -->
我正在创建一个游戏,我不希望当我调整我的窗口大小时,我的屏幕被拉伸(当然,只有当它可以适合在窗口)。我使用的是一个带有Stage的FitViewport对象,但是当我调整窗口的大小时,它上的元素也会被调整大小。我做错了什么?
这是我的屏幕课:
public class SplashScreen implements Screen{
private final PuzzleGame app;
private Stage stage;
private Image splashImage;
public SplashScreen(final PuzzleGame