android - 什么是默认布局背景

标签 android html android-layout background-color

我有一个加载带有文本的 HTML 文件的 WebView。问题是html内部和外部的颜色不一样。截图如下:

The Activity With the WebView

HTML 文件是:

<html dir="rtl">
<head>
    <title>About</title>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>

    <body bgcolor="#FFFFFF">
        <p>This is a Testpp</p>
        <p>See the problem.</p>
         <p>last test:</p>
    </body>
</html>

(如果我删除: bgcolor="#FFFFFF" 颜色保持不变) 谢谢!

最佳答案

浅色主题的默认背景颜色为:#EEEEEE

几乎是白色的,但并不完全。

它对我有用,希望它对你有用。

更新:在新版本中,您可能正在寻找#FAFAFA

关于android - 什么是默认布局背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14507370/

相关文章:

javascript - 使用指定的 #element 加载 iframe 会将父视点移动到同一位置

java - 当我旋转 Android 设备时,XML 变回 main.xml

android - 带有模块排除的 gradle 依赖属性

html - 页面调整大小后无法将 flexbox 容器拉到页脚

Java android 相对布局在滑动监听器上设置不适用于内部的 listView

android - 如何为包含的布局设置权重?

Android : inflate() ignoring utilizing root layout width/height defined in style sheets. 二进制 XML 错误

javascript - 安卓-Webkit : How to enable horizontal scrolling in div?

android - Unity导出的android项目中的gradle错误

html - Angularjs 为 anchor 链接添加斜杠