一个页面根据功能划分为不同的块的样式显示
2014-02-10 17:32
453 查看
形如下图:
代码样式如下:
<div style="border: 1px solid #aaa; margin: 10px 10px; width: 870px; margin: 10px auto;
text-align: left">
<p style="width: 80px; background: #fff; font-size: 12px; font-weight: bold; color: #055685;
position: relative; top: -8px; left: 5px; text-align: center">
诊疗信息</p>
<br />
<ul style="margin-top: -10px; margin-bottom: 10px;">
<li>
<div class="top" style="width: 850px;">
<table width="100%">
<tr>
<td style="text-align: right">
<span style="letter-spacing: 8px">患者类</span>型:
</td>
<td>
<p>
<asp:DropDownList ID="ddlPatType" runat="server" Height="25px" Width="155px" onKeyDown="enterToTab()">
</asp:DropDownList>
<span style="color: red;">*</span>
</p>
</td>
<td class="style1" style="text-align: right">
病历号:
</td>
<td class="style1">
<asp:TextBox ID="txtHospNO" runat="server" class="gh" MaxLength="20" onKeyDown="enterToTab()"></asp:TextBox>
</td>
<td style="text-align: right">
<span style="letter-spacing: 4px">所在科</span>室:
</td>
<td>
<asp:DropDownList ID="ddlDepartment" runat="server" Height="23px" Width="155px" onKeyDown="enterToTab()">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="text-align: right" class="style3">
主治医生:
</td>
<td style="position: relative">
<asp:TextBox ID="txtDoctorName" runat="server" MaxLength="20" class="gh" Width="110px"
onKeyDown="enterToTab()" ReadOnly="true"></asp:TextBox>
<a onclick="openWin('DoctorInfoFrmCheck.aspx?type=<%=type %>')" style="color: #fff;
text-align: center; background: url(../images/zgc.png) no-repeat; cursor: pointer; display: block; width: 35px; height: 26px; line-height: 26px; position: absolute; right: 40px; top: 7px;" id="check">选</a>
</td>
<td style="text-align: right" class="style1">
病区:
</td>
<td class="style1">
<p>
<asp:DropDownList ID="ddlWard" runat="server" Height="23px" Width="155px" DataValueField="WardID"
DataTextField="WardName" onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
<td style="text-align: right" class="style1">
床位:
</td>
<td class="style1">
<p>
<asp:DropDownList ID="ddlBed" runat="server" Height="23px" Width="155px" DataValueField="BedID"
DataTextField="BedName" onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
</tr>
<tr>
<td style="text-align: right" class="checkk">
<asp:CheckBox ID="cbCCRT" runat="server" onKeyDown="enterToTab()" />
</td>
<td>
<p>
CCRT
</p>
</td>
<td style="text-align: right" class="style1">
传染病类型:
</td>
<td class="style1">
<p>
<asp:DropDownList ID="ddlInfectionType" runat="server" Height="23px" Width="155px"
onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
<td class="style2" style="text-align: right">
当前治疗状态:
</td>
<td>
<p>
<asp:DropDownList ID="ddlZLZT" runat="server" Height="25px" Width="155px" onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
</tr>
</table>
</div>
</li>
</ul>
</div>
<div style="border: 1px solid #aaa; width: 870px; margin: 10px auto; text-align: left">
<p style="width: 80px; background: #fff; font-size: 12px; font-weight: bold; color: #055685;
position: relative; top: -8px; left: 5px; text-align: center">
备注
</p>
<div style="margin-bottom: 10px;">
<asp:TextBox ID="txtRemark" runat="server" Style="width: 840px; height: 60px; margin-left: 10px"
TextMode="MultiLine" MaxLength="1000" onKeyDown="enterToTab()"></asp:TextBox></div>
</div>
代码样式如下:
<div style="border: 1px solid #aaa; margin: 10px 10px; width: 870px; margin: 10px auto;
text-align: left">
<p style="width: 80px; background: #fff; font-size: 12px; font-weight: bold; color: #055685;
position: relative; top: -8px; left: 5px; text-align: center">
诊疗信息</p>
<br />
<ul style="margin-top: -10px; margin-bottom: 10px;">
<li>
<div class="top" style="width: 850px;">
<table width="100%">
<tr>
<td style="text-align: right">
<span style="letter-spacing: 8px">患者类</span>型:
</td>
<td>
<p>
<asp:DropDownList ID="ddlPatType" runat="server" Height="25px" Width="155px" onKeyDown="enterToTab()">
</asp:DropDownList>
<span style="color: red;">*</span>
</p>
</td>
<td class="style1" style="text-align: right">
病历号:
</td>
<td class="style1">
<asp:TextBox ID="txtHospNO" runat="server" class="gh" MaxLength="20" onKeyDown="enterToTab()"></asp:TextBox>
</td>
<td style="text-align: right">
<span style="letter-spacing: 4px">所在科</span>室:
</td>
<td>
<asp:DropDownList ID="ddlDepartment" runat="server" Height="23px" Width="155px" onKeyDown="enterToTab()">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="text-align: right" class="style3">
主治医生:
</td>
<td style="position: relative">
<asp:TextBox ID="txtDoctorName" runat="server" MaxLength="20" class="gh" Width="110px"
onKeyDown="enterToTab()" ReadOnly="true"></asp:TextBox>
<a onclick="openWin('DoctorInfoFrmCheck.aspx?type=<%=type %>')" style="color: #fff;
text-align: center; background: url(../images/zgc.png) no-repeat; cursor: pointer; display: block; width: 35px; height: 26px; line-height: 26px; position: absolute; right: 40px; top: 7px;" id="check">选</a>
</td>
<td style="text-align: right" class="style1">
病区:
</td>
<td class="style1">
<p>
<asp:DropDownList ID="ddlWard" runat="server" Height="23px" Width="155px" DataValueField="WardID"
DataTextField="WardName" onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
<td style="text-align: right" class="style1">
床位:
</td>
<td class="style1">
<p>
<asp:DropDownList ID="ddlBed" runat="server" Height="23px" Width="155px" DataValueField="BedID"
DataTextField="BedName" onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
</tr>
<tr>
<td style="text-align: right" class="checkk">
<asp:CheckBox ID="cbCCRT" runat="server" onKeyDown="enterToTab()" />
</td>
<td>
<p>
CCRT
</p>
</td>
<td style="text-align: right" class="style1">
传染病类型:
</td>
<td class="style1">
<p>
<asp:DropDownList ID="ddlInfectionType" runat="server" Height="23px" Width="155px"
onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
<td class="style2" style="text-align: right">
当前治疗状态:
</td>
<td>
<p>
<asp:DropDownList ID="ddlZLZT" runat="server" Height="25px" Width="155px" onKeyDown="enterToTab()">
</asp:DropDownList>
</p>
</td>
</tr>
</table>
</div>
</li>
</ul>
</div>
<div style="border: 1px solid #aaa; width: 870px; margin: 10px auto; text-align: left">
<p style="width: 80px; background: #fff; font-size: 12px; font-weight: bold; color: #055685;
position: relative; top: -8px; left: 5px; text-align: center">
备注
</p>
<div style="margin-bottom: 10px;">
<asp:TextBox ID="txtRemark" runat="server" Style="width: 840px; height: 60px; margin-left: 10px"
TextMode="MultiLine" MaxLength="1000" onKeyDown="enterToTab()"></asp:TextBox></div>
</div>
相关文章推荐
- 百度富文本编辑器的应用技巧---在一个页面中使用多个样式不同功能不同的编辑器
- 如何在solarwinds同一个页面显示不同设备的不同参数
- struts2 根据验证错误信息的不同,显示不同样式
- 小程序web-view动态显示h5页面,根据不同条件显示不同网页——微信web-view高级用法13
- 用level-list让同一个ImageView根据条件来显示不同的内容
- 技术文章 | nginx lua 小项目:根据 user_agent 显示不同的页面_附带和 php 性能的对比
- Android中同一个ImageView中根据状态显示不同图片
- devexpress实现单元格根据条件显示不同的样式(颜色、字体、对齐方式,大小等)
- ReportStudio进阶教程(一) - 条件样式:根据属性显示不同的样式
- 做一个计时器示例 在页面上有一个文本框和一个普通按钮 在状态栏上显示,单击按钮,开始计时的提示信息 单击按钮时,在文本框显示计数的过程,同时要求按钮上的字,显示为“单击暂停” 此时单击按钮,暂停计时,同时按钮上的字显示为“继续计时”,要求这两种状态来回切换,来完成计数器的功能
- 同一个表单 根据要求递交到不同页面的实现方法小结
- 图书购买系统之商品分类分页--根据主页面传来的值分类显示商品并实现动态分页功能
- JAVA SPRING MVC 实现一个简单的页面显示功能
- 写一个HTML页面,实现以下功能,左键点击页面时显示“您好”,右键点击时显示“禁止右键”。并在2秒钟后自动关闭页面
- asp.net mvc jqgrid 同一个页面查询不同的表,jqgrid显示不同表的表头和数据并且分页
- 用level-list让同一个ImageView根据条件来显示不同的内容
- CSS媒体查询,CSS根据不同的分辨率显示不同的样式
- 求助:我想在一个HTML页面里根据一个select的内容来判断是否显示一个输入框,应该怎么做?新人,急!
- 使用Date日期对象来完成,在页面上根据不同时间显示不同的问候语,如:早上好,中午好,下午好,晚上好等信息
- dialog使用方法(同一页面,调用一个js代码,实现多个不同样式的弹窗)