首页 \ 问答 \ jquery.mobile-1.4.5.min.css在最新的Android升级(Marshmallow)后不能在android webview中工作(jquery.mobile-1.4.5.min.css not working in android webview after latest android upgrade (Marshmallow))

jquery.mobile-1.4.5.min.css在最新的Android升级(Marshmallow)后不能在android webview中工作(jquery.mobile-1.4.5.min.css not working in android webview after latest android upgrade (Marshmallow))

我使用JQuery设计了一个Web页面。 我能够在Android Webview中加载页面。 页面在设备上正确呈现(Nexus 5)。

在Nexus 5最近更新的Android(Marshmallow)之后,我无法在WebView上查看Web页面。 我只是在Webview的中心看到一个小圆圈。

在运行旧版Android的设备上也是如此。

在调试过程中,我发现删除了一行后 - “link rel =”stylesheet“href =”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css“” ,该页面正在显示。 但我需要使用css文件以正确的方式设计页面。

任何有关这方面的帮助将不胜感激。


I had designed a Web page using JQuery. I was able to load the page in Android Webview. The page was rendered correctly on the device (Nexus 5).

After the recent update of Android (to Marshmallow) for Nexus 5, I am not able to view the Web Page on the WebView. I just see a small circle in the center of the Webview.

The same works on devices running older Android.

While debugging I found out that after removing the line - " link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"", the page was getting displayed. But I need the css file to design the page in a correct way.

Any help on this will be appreciated.


原文:https://stackoverflow.com/questions/33460748
更新时间:2022-03-03 17:03

最满意答案

问题是在<form>标记内部<object>元素超出范围。

尝试使用:

function play() {
  var player = document.getElementById("vlc");
  player.playlist.play();
}

The problem is that inside the <form> tag the <object> element is out of scope.

Try using:

function play() {
  var player = document.getElementById("vlc");
  player.playlist.play();
}

相关问答

更多
  • 是的,它是有效的。 HTML5规范说它可以包含任何流内容,其中流内容是 : 文档和应用程序正文中使用的大多数元素都被归类为流内容。 一个abbr地址区域(如果它是地图元素的后代)文章旁边音频b bdi bdo blockquote br button canvas cite code命令datalist del details dfn div dl em embed fieldset figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr i iframe ...
  • 不幸的是,这是IE9中的一个已知问题,但尚未得到修复。 在msdn网站上阅读它。 Unfortunately, this is a known issue in IE9 but hasn't been fixed yet. Read about it on the msdn site.
  • 小改变和简单的补充: #registration { position: relative; top: 50%; transform: translateY(-50%); border: 1px solid black; width: 50%; margin: 0 auto; // removed margin-top } Browswer对transform支持非常好: Caniuse:transform2d Small change and a simp ...
  • 你可以做一些事情: