为什么<form id="form1" runat="server">调试不出来,去掉runat="server"就可以了?跟XHTML和HTML有关吗? 10
源代码:<%@PageTitle="主页"Language="C#"MasterPageFile="~/Site.master"AutoEventWireup="true...
源代码:<%@ Page Title="主页" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="positionExample1._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<body>
<form id="form1" runat="server">
<div id="div1" style="width:257px;text-align:left;height:179px;border:solid 1px #009999;">
<div id="div2" style="width:118px;height:34px;text-align:left;border:solid 1px #ff66cc;">
<div id="div3" style="position:absolute;top:200px; left:22px; width:200px;
z-index:100;height:100px;border:solid 1px #ff0033; right: 750px;">
<div id="div4" style="top:20px;left:30px;
position:absolute;width:96px;height:42px;border:solid 1px #3366ff;">
</div>
</div>
</div>
</div>
</form>
</body>
</asp:Content> 展开
CodeBehind="Default.aspx.cs" Inherits="positionExample1._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<body>
<form id="form1" runat="server">
<div id="div1" style="width:257px;text-align:left;height:179px;border:solid 1px #009999;">
<div id="div2" style="width:118px;height:34px;text-align:left;border:solid 1px #ff66cc;">
<div id="div3" style="position:absolute;top:200px; left:22px; width:200px;
z-index:100;height:100px;border:solid 1px #ff0033; right: 750px;">
<div id="div4" style="top:20px;left:30px;
position:absolute;width:96px;height:42px;border:solid 1px #3366ff;">
</div>
</div>
</div>
</div>
</form>
</body>
</asp:Content> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询