日期:2014-05-18  浏览次数:20513 次

足够宽
怎么让下拉框足够宽啊?

HTML code
<%@ 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 />
        生成质量从&nbsp; 
        <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 />
        生成质量到&nbsp; 
        <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>



------解决方案--------------------
设置width 就可以吧
------解决方案--------------------
足够宽,可以是width="100%"
足够高,好象没办法控制!!