我看到的问题很少,但我发现它们不老,没有任何解决方案.
所以我是我的资产文件夹,我有以下树:
- ressources
- img
- logo.png
- css
- style.css
- process1
- page1.html
- index.html
Run Code Online (Sandbox Code Playgroud)
当我包含img/logo.png或css/style.css时,我的"index.html"一切正常.
但是要在"page1.html"中获得相同的结果,我必须使用../img/logo.png并且它非常烦人,因为我有很多页面.
我找到了两个难看的解决方案:
小智 11
也许解决方案是使用基本标记,允许您为所有亲属链接设置默认基础.所以对于android来说它将是:
<base href="file:///android_asset/www/" target="_blank">
Run Code Online (Sandbox Code Playgroud)
你所有的链接将是:
<img src="img/logo.png">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4404 次 |
| 最近记录: |