Andrew Simpson
Andrew Simpson

Reputation: 7324

How to display a div background in a web browser control in compact cf c#

I am using the web browser control embedded into my compact cf c# application. I have this:

<html>
<head>
<title></title>
</head>
<body>
<div style="background-image: url('sprite2.png'); width: 291px; height: 176px;" />
</body>
</html>

If use a normal web app on my PC the image appears. If I use it in compact cf it does not. The image is definatley on the device. Does this limited edition of the web browser control support background image and if so how can i get it to use a local file?

Thanks

Upvotes: 0

Views: 328

Answers (1)

user153923
user153923

Reputation:

I was able to get sprites to work on my emulator (do not currently have a device to test on).

CEZoom

My background image did not show, but the sprites I use for my menu item do appear.

Obviously, Hover does not work (since there is no mouse to hover over the links).

Is your device able to reach other sites online?

Upvotes: 1

Related Questions