div居中和table居中,jQuery获取下拉列表值
一、div居中
margin-left: auto;margin-right: auto;
<div style="width:960px ; margin-left: auto;margin-right: auto;" ></div>
二、table居中
margin:auto;
.searchclass
{
width:960px;
min-height:80px;
border-right:1px solid #000;border-bottom:1px solid #000;
margin:auto; }
.searchclass tr td
{
height:15px;
border-left:1px solid #000;border-top:1px solid #000
}
<table class="searchclass">
<tr><td><asp:label id="Label9" Width="120px" runat="server">有效截止日期:</asp:label></td><td><asp:label id="lblTillDate" Width="120px" runat="server" ForeColor="#FF8080"></asp:label></td><td colspan=""></td></tr>
<tr><td> Check-in:<asp:dropdownlist id="lstFADD" Width="48px" runat="server" ></asp:dropdownlist></td>
<td><asp:dropdownlist id="lstFAMMYY" Width="85px" runat="server"></asp:dropdownlist></td>
<td>Nights :<asp:dropdownlist id="lstNights" Width="48px" runat="server" ></asp:dropdownlist></td>
<td><asp:Button ID="btnsearch" runat="server" Text="查询" /><asp:Button ID="btnExcel" runat="server" Text="Export to Excel" /></td>
</tr>
<tr>
<td colspan="">开始时间:
<asp:dropdownlist id="lstFADDFnestart" Width="48px" runat="server" ></asp:dropdownlist>
<asp:dropdownlist id="lstFAMMYYFnestart" Width="85px" runat="server"></asp:dropdownlist>
</td>
<td colspan="">截止时间:
<asp:dropdownlist id="lstFADDFneend" Width="48px" runat="server" ></asp:dropdownlist>
<asp:dropdownlist id="lstFAMMYYFneend" Width="85px" runat="server"></asp:dropdownlist>
</td>
</tr>
<tr><td colspan=""><asp:Button ID="btnsaveFne" runat="server" Text="Save"/></td></tr>
</table>
三、下拉列表jQuery获取值
var fneSupplierid = $("#ddFneSuppliers").val(); //获取Select选择的Value
var fneSuppliers = $("#ddFneSuppliers").find("option:selected").text(); 获取text值 显示看到的。
div居中和table居中,jQuery获取下拉列表值的更多相关文章
- jquery获取kindEditor值
KE.show({ id: 'txtMessage', imageUploadJson: '/ajax/Manager/keupload.ashx?ptyp ...
- 让div中的table居中
div 标签上写 style="text-align:center" div中的table中写 style="margin:auto;" <table ...
- jquery获取下拉列表的值和显示内容的方法
页面的下拉列表: 选择时间段: <select name="timespan" id="timespan" class="Wdate" ...
- jQuery获取data-*属性值
下面就详细介绍四种方法获取data-*属性的值 <li id="getId" data-id="122" data-vice-id="11&qu ...
- jquery 获取一组元素的选中项 - 函数、jquery获取复选框值、jquery获取单选按钮值
做表单提交时,如果现在还在用form提交,用户体验很差,所以一般使用ajax提交. 其中需要获取每个表单输入元素的值,获取的时候像文本框这些还好说,Jquery提供了 .val() 方法,获取很方便, ...
- jquery 获取设置值、添加元素详解
jQuery 获取内容和属性 jQuery DOM 操作 jQuery 中非常重要的部分,就是操作 DOM 的能力. jQuery 提供一系列与 DOM 相关的方法,这使访问和操作元素和属性变得很容易 ...
- 转载JQuery 获取设置值,添加元素详解
转载原地址 http://www.cnblogs.com/0201zcr/p/4782476.html jQuery 获取内容和属性 jQuery DOM 操作 jQuery 中非常重要的部分,就是操 ...
- jquery获取radio值
单选组radio: $("input[@type=radio][@checked]").val(); 单选组 radio: $("input[@type=radio]&q ...
- jQuery获取多种值的方法
**jQuery 1.3.2版本下的 jquery radio取值,checkbox取值,select取值,radio选中,checkbox选中,select选中,及其相关设置** 1.判断是否已经打 ...
随机推荐
- BZOJ 2599: [IOI2011]Race
点分治,定权值,求另一关键字最小 不满足前缀加减性 可以按序遍历,用一数组$t[] 来维护路径为i的最小边数$ 再对于一个直系儿子对应的子树,先算距离求答案再更新$t数组,这样就不会重复$ #incl ...
- Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) D. Jon and Orbs
地址:http://codeforces.com/contest/768/problem/D 题目: D. Jon and Orbs time limit per test 2 seconds mem ...
- 安卓 Activity 生命周期
创建到销毁的生命周期: onCreate()->onStart()->onResume()->onPause->onStop->onDestroy 启动到前台在到后台的生 ...
- 在Ubuntu14.4(32位)中配置I.MX6的QT编译环境
1,开发工具下载 一,下载VMware Workstation虚拟机 地址:http://1.xp510.com:801/xp2011/VMware10.7z 二,下载Ubuntu 14.04.5 L ...
- WCF使用安全证书验证消息加密
首先安装 服务端安全证书 代码如下: // 下面第一行是安装证书,第二行是将证书列入信任 makecert.exe -sr LocalMachine -ss MY -a sha1 -n CN=lo ...
- JavaScript浮点运算,小数点精度
math.js JavaScript浮点运算,小数点精度 // JavaScript Document //数学函数 // 浮点数加法运算 function floatAdd(arg1, arg2) ...
- Elasticsearch+Kibana+Logstash安装
安装环境: [root@node- src]# cat /etc/redhat-release CentOS Linux release (Core) 安装之前关闭防火墙 firewalld 和 se ...
- MySQL—记录的增删改查操作
1.插入记录: 方法一:INSERT [INTO] tbl_name [(col_name,···)] {VALUES|VALUE} ({expr |DEFAULT},···),(···),··· 例 ...
- Mybatis <if>标签使用注意事项
在<if>标签的test中,不能写成“name !='aa'” , 会报错### Error querying database. Cause: java.lang.NumberForma ...
- idea 2017 常用图标