首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

奇怪的有关问题

2011-12-26 
奇怪的问题我用vs2005做的MasterPages上面有.jpg的图片,在选它做内容页时它不变成灰色,图片出不来,变成很

奇怪的问题
我用vs2005做的MasterPages   上面有.jpg的图片,在选它做内容页时它不变成灰色,图片出不来,变成很大的空的框。各位碰到过没有?
请高手指点那里做的不对?
把aspx贴给你们看一下。
<%@   Master   Language= "C# "   AutoEventWireup= "true "   CodeFile= "MasterPage20.master.cs "
        Inherits= "MasterPage "   %>
<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.1   Transitional//EN "   "http://www.w3.org/TR/xhtml1/DTD/xhtml11-transitional11.dtd ">
<html   xmlns= "http://www.w3.org/1999/xhtml ">
<head   runat= "server ">
        <title> 无标题页 </title>
</head>
<body   style= "left:   0px;   position:   absolute;   top:   0px ">
        <form   id= "form1 "   runat= "server ">
                <div   style= "left:   0px;   position:   absolute;   top:   0px; ">
                        <table   border= "1 "   cellpadding= "0 "   cellspacing= "0 ">
                                <tr>
                                        <td   style= "height:   90px;   background-color:   gainsboro; ">
                                                <img   src= "App_Themes/Images/a33.jpg "   style= "width:   100% "   />
                                        </td>
                                </tr>
                                <tr   id= "row1 "   bgcolor= "#8fbc8b ">
                                        <td   colspan= "2 ">
                                                <asp:Menu   ID= "Menu1 "   runat= "server "   BackColor= "DarkSeaGreen "   DataSourceID= "SiteMapDataSource1 "
                                                        Font-Size= "10pt "   ForeColor= "#004000 "   Orientation= "Horizontal "   StaticDisplayLevels= "2 "
                                                        StaticSubMenuIndent= "10px "   Style= "position:   relative "   Width= "480px ">
                                                </asp:Menu>


                                        </td>
                                </tr>
                                <tr>
                                        <td   style= "width:   99px;   height:   438px;   background-color:   lavender "   valign= "top ">
                                                <asp:ContentPlaceHolder   ID= "ContentPlaceHolder1 "   runat= "server ">
                                                </asp:ContentPlaceHolder>
                                        </td>
                                </tr>
                                <tr>
                                        <td   style= "width:   99px;   height:   38px;   background-color:   lavender ">
                                        </td>
                                </tr>
                        </table>
                        <asp:SiteMapDataSource   ID= "SiteMapDataSource1 "   runat= "server "   />
                        &nbsp;
                </div>
        </form>
</body>
</html>


[解决办法]
<img src= "App_Themes/Images/a33.jpg " style= "width: 100% " />

是不是图片不在根目录中???

热点排行