状态:
我从服务器下载了一些java脚本文件,并将它们保存在设备存储中,并希望将它们链接到我的index.html,如下所示:
<script
type="text/javascript"
src="file:///data/data/<app_id>/files/path/to/my-script.js/">
</script>
CSS也是如此。
这个错误:
Not allowed to load local resource:
file:///data/data/<app_id>/files
如何重写子css-property。例如,文本应为黑色:
<div style="color: Black;">
<div style="color: Red;">Red text that should be black.</div>
</div>
因为我得到了一些建议我不应该使用内联样式的答案,我应该告诉你这不是一个选项,至少不是内部div的选项。
<p>Click the button to add the "mystyle" class to DIV.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> The classList property is not supported in Internet Explorer 9 and earlier versions.</p>
<p id=