2013-11-15 36 views
0

asp.net面板是否可以插入水印?這些面板用於打印目的。另一個問題是,面板中的背景圖像不是正在打印,而只是其中的對象。ASP.Net面板的水印

回答

0

我想你應該看看BackImageUrl屬性。併爲其分配水印圖像的路徑。

<asp:Panel BackImageUrl="yourimagefile.png" /> 

此外,應該給圖像一個適當的不透明度/ alpha值,以便它是透明的。

+0

我已經試過了,但它不工作。同樣在一個div也.. :( – eirishainjel

0
<asp:Panel ID="Panel1" runat="server"> 

<asp:Image ID="Image1" runat="server" ImageUrl="~/yourimage.png" /> 

<div style="margin-top: -xxx"><--change the position <div> to overlaps with the image 
.... 

your content here 

.... 
</div> 

</asp:Panel>