喜
在我的应用程序需要显示的WebView一个HTML页面和html页面应该是指SD卡位置.css文件(使用链接的href =...标记)。
我把2个文件(即)HTML和CSS)的sdcard-> mibook。
我试图通过给绝对路径为链接HREF =到/ mnt / SD卡/ mibook / 0.css
我怎么可以指定路径名的Android?
hi
In my application i need to display a html page in webview and that html page should refer to sdcard location for .css file (Using link href="...." tag).
I placed 2 files (i.e) html and css ) in sdcard->mibook.
I tried by giving absolute path as link href="/mnt/sdcard/mibook/0.css"
how can i specify path name android?
编辑: 上面的问题就迎刃而解了:使用这个 - 链接的href =文件:///sdcard/mibook/0.css 但我有以下要求, 我需要处理每一次50+左右的html文件,
Edited: Above problem solved : by using this- link href="file:///sdcard/mibook/0.css" But i have following requirement, i need to handle around 50+ html file every time ,
我把所有的文件,如下所示, mibook-> book1-> pg90.sqlite mibook-> book1->链接 - > o.css和1.CSS sqlite的文件包含HTML页面。每个HTML页都有CSS引用作为链接的href =/链接/ 0.css 这些CSS文件应该由HTML来参考。我怎样才能做到这一点?
I placed all files as follows, mibook->book1->pg90.sqlite mibook->book1->links->o.css and 1.css The sqlite file contains html pages. each html page has css reference as link href="/links/0.css" These css file should be refer by html. how can i do this?
尝试
链接的href =文件:///sdcard/mibook/0.css
假设的Android> = 2.1
Assuming Android >= 2.1