asp.net网页无法显示母版中的TOP图片

zhengran2414 zhengran2414 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在母版能看到表格里面设置的图片,但是在运行网页之后,无法显示图片,是我的style设置有误?还是属性错了?还是什么其他的原因?请高手支招~

运行之后

代码如下:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="skin_MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 100%;
margin-bottom: 0px;
}

.sec_menu { border-left:1px solid gray; border-right:1px solid gray; border-bottom:1px solid gray; overflow:hidden; background:#f8f8f8; }
.style7
{
width: 256px;
height: 205px;
}
.menu_title {font-family:"Arial", "Helvetica", "sans-serif"; font-size:8pt }

.style14
{
height: 205px;
}

.style15
{
width: 100%;
margin-right: 0px;
}
.style17
{
height: 29px;
}

.style18
{
width: 100%;
}

</style>
</head>
<body style="padding:0;margin:0;font-size:9pt;">
<form id="form1" runat="server">
<div style="background-image: url('/images/train_top.jpg'); background-position: left; height: 200px">
</div>
<table cellpadding="0" cellspacing="0" class="style1" align="left"
frame="box">

<tr>

<td bgcolor="#99CCFF" class="style7"

style="font-family: 宋体, Arial, Helvetica, sans-serif; " align="left">
<table class="style15" bgcolor="#99CCFF" align="center">

<tr>
<TD align="center" class="style17" colspan="2" height="100">会员登录</TD>
</tr>

<tr>
<FONT face="宋体">
<TD align="center" class="style17">用户名:</TD>
<TD style="HEIGHT: 29px">
<asp:TextBox id="txtUserName1" runat="server" Width="119px"></asp:TextBox></TD>
</FONT>
</tr>
<tr>
<FONT face="宋体">
<TD align="center" class="style17">  密 码:</TD>
<TD style="HEIGHT: 32px">
<asp:TextBox id="txtPwd1" runat="server" Width="119px" TextMode="Password"></asp:TextBox></TD>
</FONT>
</tr>
<tr>
<FONT face="宋体">
<TD colspan="2" style="HEIGHT: 34px" bgColor="#99CCFF">           <asp:Button id="btnLogin1" runat="server" Text="登陆" Width="50px" onclick="btnLogin_Click"></asp:Button>
 
<FONT face="宋体">
<asp:Button id="btnSubmit1" runat="server" Text="注册" Width="50px"
onclick="btnSubmit_Click"></asp:Button>
</FONT>
</TD>
</FONT>
</tr>

</table>
</td>

<td class="style14" valign="top" dir="ltr" align="left">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF" colspan="2" align="center" valign="bottom">
<asp:HyperLink ID="HyperLink6" runat="server">关于本站</asp:HyperLink>
  | 
<asp:HyperLink ID="HyperLink4" runat="server">联系我们</asp:HyperLink>
 |
<asp:HyperLink ID="HyperLink5" runat="server">收藏本页</asp:HyperLink>
<br />
...全文
评论 5
收藏 已收藏
分享
返回顶部
zhengran2414
.NET社区 62,274 成员 668,968 内容