为C#WebBrowser控件创建水印 [英] Create a watermark for C# WebBrowser control

查看:159
本文介绍了为C#WebBrowser控件创建水印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到使用WebBrowser控件的HTML代码在C#中创建水印的HTML代码.我想要一个图像文件,尺寸为40x100 png,要淡入页面内容的后面.这可能成一定角度,也可能是平铺形式或在position:center.

尝试了来自不同站点的众多变体,但似乎没有任何效果.

I can''t find HTML code to create a watermark in C# using HTML code for the WebBrowser control. I want to have an image file, dimensions say 40x100 of png, to be faded behind the page''s contents. This could possibly be at an angle or in a tiled form or at position:center.

Tried numerous variations from different sites and nothing seems to work. Please help, if possible, can working code be posted?

推荐答案

您好,

您可以使用HTML和CSS来实现.
在Internet上搜索背景CSS属性 [
Hi,

You can do that with HTML and CSS.
Search internet for background CSS property[^]
Here is simple solution with image positioned in bottom right corner of the browser window.
Add this css in head page section
body
{
background-image:url('YourImage.gif');
background-repeat:no-repeat;
background-position:right bottom;
}


这篇关于为C#WebBrowser控件创建水印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆