English 中文(简体)
利用html/cs3和WebView将图像提升到屏幕上......在图像负荷之前就有一个白色屏幕。
原标题:Using html/css3 and WebView to scale an image to the screen... get a white screen before the image loads

我正在使用一个波思语,装上一些地方的html,把图像作为背景,在我开始装上网上电文的活动时,我会在图像负荷之前有一个非常简短的白色屏幕闪光。 这不是一件大事,但我想避免。 我曾试图确定与黑人有关的所有因素的背景,但这种背景仍然存在......任何想法?

这里我是:

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">

    <title>NerdRAGE</title>

    <style>
        * { margin: 0; padding: 0; }

        html { 
            background: url(images/10_1.jpg) no-repeat center center fixed; 
            -webkit-background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;
            background-size: cover;
        }


    </style>
</head>

<body bgcolor="#000000">



</body>

</html>

这里,我的XML:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
<WebView  
    android:id="@+id/mapview"
    android:background="#000000" android:scaleType="centerInside" android:layout_gravity="center_vertical|center_horizontal" android:clickable="false" android:fitsSystemWindows="true" android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
    </LinearLayout>
问题回答

Found this post on here:
How to prevent the white flash on page load created by background image loading delay?

ry setting html html html html html html 它 s坏。

html {background: #[color] url( images/10_1.jpg ) no-repeat center center fixed; }




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签