English 中文(简体)
html 显示图像并非装满。
原标题:html string with image is not loading

Hey can any one suggest for web view. I have html string which has image URL.But image does not get loaded. Also I want back forward navigation.

正在做的是

webView.loadDataWithBaseURL("data:", html, "text/html", "utf-8", html);

以及

html="<html><script type="text/javascript">
        function startTime(){var today=new Date();
        var h=today.getHours();
        var m=today.getMinutes();
        var s=today.getSeconds();
        m=checkTime(m);
        s=checkTime(s);
        document.getElementById( txt ).innerHTML=h+":"+m+":"+s;
    }</script><body bgcolor="black"><a href="image.png" target="parent" style="color:pink">TESTING NOTES</a>
<p style="color:white" >Finding faults early</p><p style="color:white">To Test Reload Check Current Time:<div id="txt" style="color:white"></div></p></body></html>";

图像:png在资产夹中。 也没有执行。

最佳回答

如果图像出现在资产夹中,那么在被点击时,需要像以下这样的东西:

<a href="assetsimage.png">TESTING NOTES</a>
问题回答

<代码>image.png在超文本封内,没有理由装上。

显示图像,使用标号为<img>,如:

<img src="image.png" />

你们更能学习一些基本的超文本,在网上和书本上有许多教员。

至于 Java,你在称为<条码>的起步时间/代码”的职能范围内,但没有任何人称呼这一功能——不肯定你会如何执行。





相关问题
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!

热门标签