如何为页面元素设置背景图像 [英] how to set background image for element of a page
本文介绍了如何为页面元素设置背景图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以回复我吗...
Can Anyone Reply me pls...
how to set background image for element of a page
推荐答案
,您可以使用面板的backimageUrl属性.并在div中使用样式,然后使用background-image,然后在页面上使用body标签中的图像,或者使用background-image或使用style属性设置图像.
you can use backimageUrl property of panel. and in div use style and then background-image and on page use image in body tag either use background-image or set image using style property.
尝试此
<asp:Panel ID="Panel4" runat="server" Height="30px" Width="370px" CssClass="fancyPanel">
</asp:Panel>
.fancyPanel
{
background-image: url(http://www.mendhak.com/logo.gif);
}
这篇关于如何为页面元素设置背景图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文