问题描述
刚学习Ext。自己找Demo做了下功能没问题就是布局很乱文本框都太长了怎么调都调不好求大神指导
解决方案
解决方案二:
下面是我自己做的截图乱得不忍直视
解决方案三:
附上前台代码<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="TextTwo.aspx.cs"Inherits="WebState.TextTwo"%><!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title></title></head><body><formid="form1"runat="server"><ext:ResourceManagerID="ResourceManager1"runat="server"></ext:ResourceManager><ext:Windowrunat="server"ID="win1"Title="PanelDemo2"Width="1000"Height="900"><Items><ext:FieldSetID="FieldSet1"runat="server"Collapsible="true"Collapsed="false"Height="300"Title="现病史"><Items><ext:FormPanelID="FormPanel1"runat="server"BodyPadding="5"Layout="VBoxLayout"><FieldDefaultsLabelWidth="60"LabelAlign="Right"></FieldDefaults><Items><ext:FieldContainerID="FieldContainer8"runat="server"Layout="HBoxLayout"><Items><ext:DateFieldID="StartDate"runat="server"FieldLabel="初诊日期"Vtype="daterange"EndDateField="EndDate"/><ext:ComboBoxrunat="server"ID="cmbUserList"DisplayField="Name"ValueField="ID"FieldLabel="不孕类型"><Items><ext:ListItemText="继发不孕"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:TextFieldID="TextField26"runat="server"FieldLabel="不孕年限"Text="8"></ext:TextField></Items></ext:FieldContainer><ext:TextFieldID="TextField23"runat="server"FieldLabel="主诉"></ext:TextField><ext:ComboBoxrunat="server"ID="ComboBox1"DisplayField="Name"ValueField="ID"FieldLabel="现病史"Text="....全部...."><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:TextArearunat="server"ID="txtRemark"FieldLabel="备注"Width="600"></ext:TextArea></Items></ext:FormPanel></Items></ext:FieldSet>
解决方案四:
<ext:FieldSetID="FieldSet2"runat="server"Collapsible="true"Collapsed="false"Height="300"Title="既往病史"><Items><ext:FormPanelID="FormPanel2"runat="server"BodyPadding="5"Layout="VBoxLayout"><FieldDefaultsLabelWidth="60"LabelAlign="Right"></FieldDefaults><Items><ext:FieldContainerID="FieldContainer5"runat="server"Layout="HBoxLayout"><Items><ext:ComboBoxrunat="server"ID="ComboBox2"DisplayField="Name"ValueField="ID"FieldLabel="肝炎"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:ComboBoxrunat="server"ID="ComboBox3"DisplayField="Name"ValueField="ID"FieldLabel="泌尿系感染"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:ComboBoxrunat="server"ID="ComboBox4"DisplayField="Name"ValueField="ID"FieldLabel="肾脏疾病"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox></Items></ext:FieldContainer><ext:FieldContainerID="FieldContainer6"runat="server"Layout="HBoxLayout"><Items><ext:ComboBoxrunat="server"ID="ComboBox5"DisplayField="Name"ValueField="ID"FieldLabel="结核"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:ComboBoxrunat="server"ID="ComboBox6"DisplayField="Name"ValueField="ID"FieldLabel="心血管疾病"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:ComboBoxrunat="server"ID="ComboBox7"DisplayField="Name"ValueField="ID"FieldLabel="性传播疾病史"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox></Items></ext:FieldContainer><ext:FieldContainerID="FieldContainer7"runat="server"Layout="HBoxLayout"><Items><ext:ComboBoxrunat="server"ID="ComboBox8"DisplayField="Name"ValueField="ID"FieldLabel="阑尾炎"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:ComboBoxrunat="server"ID="ComboBox9"DisplayField="Name"ValueField="ID"FieldLabel="泌尿生殖病史"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox></Items></ext:FieldContainer><ext:FieldContainerID="FieldContainer9"runat="server"Layout="HBoxLayout"><Items><ext:ComboBoxrunat="server"ID="ComboBox10"DisplayField="Name"ValueField="ID"FieldLabel="盆腔炎"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:TextFieldID="TextField19"runat="server"></ext:TextField></Items></ext:FieldContainer><ext:FieldContainerID="FieldContainer10"runat="server"Layout="HBoxLayout"><Items><ext:ComboBoxrunat="server"ID="ComboBox11"DisplayField="Name"ValueField="ID"FieldLabel="手术史"><Items><ext:ListItemText="秘密"Value="1"/><ext:ListItemText="保密"Value="2"/><ext:ListItemText="绝密"Value="3"/></Items></ext:ComboBox><ext:TextFieldID="TextField20"runat="server"></ext:TextField></Items></ext:FieldContainer><ext:TextFieldID="TextField21"runat="server"FieldLabel="其他"Width="600"></ext:TextField></Items></ext:FormPanel></Items></ext:FieldSet>