怪事,请各位帮我看看哪里错了
我是新手,刚试了两个服务器控件都有问题,请各位帮我看看:
1。
<asp:Button id="Button1" style="Z-INDEX: 103; LEFT: 71px; POSITION: absolute; TOP: 188px" runat="server" Text="Button" Height="39px" Width="132px"></asp:Button>
这个按钮在网页上没有显示
2。
<%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm2</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<asp:Label ID="message" Runat="server" />
<br>
<form id="WebForm2" method="post" runat="server">
<FONT face="宋体">
<asp:DropDownList id="list1" style="Z-INDEX: 101; LEFT: 233px; POSITION: absolute; TOP: 174px" runat="server" Width="139px" Height="41px">
<asp:ListItem Value="Madrid">Madrid</asp:ListItem>
<asp:ListItem Value="Oslo">Oslo</asp:ListItem>
<asp:ListItem Value="Lisbon">Lisbon</asp:ListItem>
</asp:DropDownList>
<br>
<br>
<INPUT style="Z-INDEX: 102; LEFT: 228px; WIDTH: 88px; POSITION: absolute; TOP: 229px; HEIGHT: 38px" type="submit" value="Button"></FONT>
</form>
</body>
</HTML>
结果是:
Madrid Oslo Lisbon
加一个按钮
怎么回事啊
先谢各位了