Android的,我怎么能应用CSS到的WebView? [英] Android, How can I apply CSS into WebView?
本文介绍了Android的,我怎么能应用CSS到的WebView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用的WebView,为了展示一些段落到用户。 在XML中,我有以下code写的:
I want to use WebView, in order to show some paragraphs to user. In XML, I have written following code:
<WebView
android:id="@+id/webview"
android:layout_width = "fill_parent"
android:layout_height = "fill_parent"
android:background = "#190306"
android:textColor = "#FFDEC2"
android:autoLink = "web" />
不过,背景,文字颜色和自动链接不承认和仿真器显示的WebView与白色背景和黑色文字颜色。
But background, text color and autolink do not recognize and emulator shows webview with white background and black text color.
如何应用CSS到这个web视图? 谢谢
How can I apply CSS into this webview? Thanks
推荐答案
正在将更改应用到web视图作为对象。你需要做的是创建一个CSS文件和使用,在任何网页上的WebView指向。
You are applying changes to the webview as an object. What you need to do is create a css file and use that in whatever pages your webview is pointing to.
这篇关于Android的,我怎么能应用CSS到的WebView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文