<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<link href="" rel="stylesheet" type="text/css"/>
<style type="text/css"> body{margin-top:0px;margin-left:0px} </style>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align:center;background-image:url(image/background.jpg);background-repeat:no-repeat;">
<table style="width:755px;margin-top:0px;vertical-align:top;padding-top:0px;text-align:center;" cellpadding="0" cellspacing="0">
<tr> <td colspan="3" style="height:141px;background-image:url(image/banner.jpg);"> </td> </tr>
<tr>
<td colspan="3" style="text-align:left;height:234px;">
<table style="width:755px;height:300px" cellpadding="0" cellspacing="0">
<tr>
<td style="width:211px;background-color:#dcdcdc;background-image:url(image/left.jpg);
height:296px;text-align:right;vertical-align:middle;background-repeat:no-repeat;">
<div id="navLink" style="font-size:12pt;width:200px;height:19%;background-color:gainsboro;vertical-align:middle;text-align:right;">
<ul style="list-style:none">
<li><a href="index.aspx" title="查看主题" style="width:185px">查看主题</a></li>
<li><a href="#" title="发表留言" style="width:185px">发表留言</a></li>
<li><a href="#" title="用户注册" style="width:185px">用户注册</a></li>
<li><a href="#" title="我的留言" style="width:185px">我的留言</a></li>
<li><a href="#" title="留言管理" style="width:185px">留言管理</a></li>
<li><a href="#" title="注销登录" style="width:185px">注销登录</a></li>
</ul>
</div>
</td>
<td colspan="2" style="vertical-align:top;height:296px;text-align:center">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
<table cellpadding="0" cellspacing="0" height="400px" width="100%">
<tr> <td colspan="3" rowspan="3"></td> </tr>
</table>
</asp:contentplaceholder>
</td>
</tr>
</table>
</td>
</tr>
<tr> <td colspan="3" rowspan="1" style="background-image:url(image/bottom.jpg);background-repeat:no-repeat;">
</td></tr>
</table>
</div>
</form>
</body>
</html>这是一个模板页,页面出问题了。
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<link href="" rel="stylesheet" type="text/css"/>
<style type="text/css"> body{margin-top:0px;margin-left:0px} </style>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align:center;background-image:url(image/background.jpg);background-repeat:no-repeat;">
<table style="width:755px;margin-top:0px;vertical-align:top;padding-top:0px;text-align:center;" cellpadding="0" cellspacing="0">
<tr> <td colspan="3" style="height:141px;background-image:url(image/banner.jpg);"> </td> </tr>
<tr>
<td colspan="3" style="text-align:left;height:234px;">
<table style="width:755px;height:300px" cellpadding="0" cellspacing="0">
<tr>
<td style="width:211px;background-color:#dcdcdc;background-image:url(image/left.jpg);
height:296px;text-align:right;vertical-align:middle;background-repeat:no-repeat;">
<div id="navLink" style="font-size:12pt;width:200px;height:19%;background-color:gainsboro;vertical-align:middle;text-align:right;">
<ul style="list-style:none">
<li><a href="index.aspx" title="查看主题" style="width:185px">查看主题</a></li>
<li><a href="#" title="发表留言" style="width:185px">发表留言</a></li>
<li><a href="#" title="用户注册" style="width:185px">用户注册</a></li>
<li><a href="#" title="我的留言" style="width:185px">我的留言</a></li>
<li><a href="#" title="留言管理" style="width:185px">留言管理</a></li>
<li><a href="#" title="注销登录" style="width:185px">注销登录</a></li>
</ul>
</div>
</td>
<td colspan="2" style="vertical-align:top;height:296px;text-align:center">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
<table cellpadding="0" cellspacing="0" height="400px" width="100%">
<tr> <td colspan="3" rowspan="3"></td> </tr>
</table>
</asp:contentplaceholder>
</td>
</tr>
</table>
</td>
</tr>
<tr> <td colspan="3" rowspan="1" style="background-image:url(image/bottom.jpg);background-repeat:no-repeat;">
</td></tr>
</table>
</div>
</form>
</body>
</html>这是一个模板页,页面出问题了。
解决方案 »
- 外面传进来的参数不能用,而方法里的却能用,不知道为什么?
- 求一字符串的加密规则
- 在Repeater内使用控件Label的问题
- 请问谁有曹衍龙的《ASP/ASP.NET数据库开发实用工程案例精选》这本书的源代码啊?
- ms sql server中如何实现查询当前一个内的所有信息
- 疑惑:返回DataSet跟返回DataView哪个更好点?
- 大家给点意见啊!小弟在等着哩
- 100分求怎么获取路径!!!
- !!!!!!!!请教这个SQL查询语句怎样写????!!!!!高分相求
- Help!!!!!!!!!!我的Server.Transfer()方法为什么出现页面的视图状态无效的错误?
- 数据库事务的抽象工厂中的“TransactionThread”实体类
- 关于checkboxlist自动打勾
<li><a href="index.aspx" title="查看主题" style="width:160px">查看主题</a></li>
<li><a href="#" title="发表留言" style="width:160px">发表留言</a></li>
<li><a href="#" title="用户注册" style="width:160px">用户注册</a></li>
<li><a href="#" title="我的留言" style="width:160px">我的留言</a></li>
<li><a href="#" title="留言管理" style="width:160px">留言管理</a></li>
<li><a href="#" title="注销登录" style="width:160px">注销登录</a></li>
</ul>
<link href="" rel="stylesheet" type="../text/css"/>
是不是这儿忘引用样式表了
页面上的样式尽量写在外部的CSS里,都写在style不是太好