足够宽

lude8880 2009-03-03 04:52:23
怎么让下拉框足够宽啊?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sub.aspx.cs" Inherits="sub" %>

<!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>
</head>
<body>
<form id="form1" runat="server">
<div>

用户名
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
生成质量从 
<asp:DropDownList ID="DropDownList1" runat="server" style="height: 22px"
Width="65px">
<asp:ListItem>初始测试通过</asp:ListItem>
<asp:ListItem>初始测试准备工作就绪</asp:ListItem>
<asp:ListItem>实验室测试通过</asp:ListItem>
<asp:ListItem>未检查</asp:ListItem>
<asp:ListItem>演示版本</asp:ListItem>
<asp:ListItem>已发布</asp:ListItem>
<asp:ListItem>已拒绝</asp:ListItem>
<asp:ListItem>用户验收测试已通过</asp:ListItem>
</asp:DropDownList>
<br />
生成质量到 
<asp:DropDownList ID="DropDownList2" runat="server" style="height: 22px"
Width="65px">
<asp:ListItem>初始测试通过</asp:ListItem>
<asp:ListItem>初始测试准备工作就绪</asp:ListItem>
<asp:ListItem>实验室测试通过</asp:ListItem>
<asp:ListItem>未检查</asp:ListItem>
<asp:ListItem>演示版本</asp:ListItem>
<asp:ListItem>已发布</asp:ListItem>
<asp:ListItem>已拒绝</asp:ListItem>
<asp:ListItem>用户验收测试已通过</asp:ListItem>
</asp:DropDownList>

</div>
<asp:Button ID="Button1" runat="server" Text="提交" />
</form>
</body>
</html>
...全文
54 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
fangq 2009-03-03
  • 打赏
  • 举报
回复
style="width:100%;"
lude8880 2009-03-03
  • 打赏
  • 举报
回复
width:auto就行了谢谢哈
koukoujiayi 2009-03-03
  • 打赏
  • 举报
回复
足够宽,可以是width="100%"
足够高,好象没办法控制!!
zjw2004112 2009-03-03
  • 打赏
  • 举报
回复
设置width 就可以吧

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧