如何在asp.net中将面板设置为bgimage网址 [英] how to set panel to bgimage url in asp.net

查看:81
本文介绍了如何在asp.net中将面板设置为bgimage网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将面板设置为背景,但是我选择了属性"窗口BackImageUrl,这些文件未显示,但是我的项目文件夹中有jpg文件,如何将Backimageurl设置为面板,
请任何人帮助我

谢谢您

I want to set the panel to background, but i select i properties window BackImageUrl the files are not displayed, but i have the jpg files in my project folder, how to set to Backimageurl to panel ,
Please anyone help me

Thanking you

推荐答案


在下面查看此链接
http://asp-net-example. blogspot.com/2009/04/how-to-use-image-as-panel-background.html [
Hi,
check this link below
http://asp-net-example.blogspot.com/2009/04/how-to-use-image-as-panel-background.html[^]


<asp:Panel ID="Panel1" runat="server" BackImageUrl="~/image30.jpeg">
        </asp:Panel>



通常,这将使您更好地检查Div标签的CSS属性,因为在运行时面板期间将更改为div标签.

确保您的面板不为空



Ususally this will work you better check your CSS properties for Div tag because during runtime panel will be changed into div tag.

Make sure that your pannel is not empty


这篇关于如何在asp.net中将面板设置为bgimage网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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