一、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> &nbsp;&nbsp;
<asp:dropdownlist id="lstFAMMYYFnestart" Width="85px" runat="server"></asp:dropdownlist>
</td>
<td colspan="">截止时间:
<asp:dropdownlist id="lstFADDFneend" Width="48px" runat="server" ></asp:dropdownlist> &nbsp;&nbsp;
<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获取下拉列表值的更多相关文章

  1. jquery获取kindEditor值

    KE.show({            id: 'txtMessage',            imageUploadJson: '/ajax/Manager/keupload.ashx?ptyp ...

  2. 让div中的table居中

    div 标签上写  style="text-align:center" div中的table中写 style="margin:auto;"  <table ...

  3. jquery获取下拉列表的值和显示内容的方法

    页面的下拉列表: 选择时间段: <select name="timespan" id="timespan" class="Wdate" ...

  4. jQuery获取data-*属性值

    下面就详细介绍四种方法获取data-*属性的值 <li id="getId" data-id="122" data-vice-id="11&qu ...

  5. jquery 获取一组元素的选中项 - 函数、jquery获取复选框值、jquery获取单选按钮值

    做表单提交时,如果现在还在用form提交,用户体验很差,所以一般使用ajax提交. 其中需要获取每个表单输入元素的值,获取的时候像文本框这些还好说,Jquery提供了 .val() 方法,获取很方便, ...

  6. jquery 获取设置值、添加元素详解

    jQuery 获取内容和属性 jQuery DOM 操作 jQuery 中非常重要的部分,就是操作 DOM 的能力. jQuery 提供一系列与 DOM 相关的方法,这使访问和操作元素和属性变得很容易 ...

  7. 转载JQuery 获取设置值,添加元素详解

    转载原地址 http://www.cnblogs.com/0201zcr/p/4782476.html jQuery 获取内容和属性 jQuery DOM 操作 jQuery 中非常重要的部分,就是操 ...

  8. jquery获取radio值

    单选组radio: $("input[@type=radio][@checked]").val(); 单选组 radio: $("input[@type=radio]&q ...

  9. jQuery获取多种值的方法

    **jQuery 1.3.2版本下的 jquery radio取值,checkbox取值,select取值,radio选中,checkbox选中,select选中,及其相关设置** 1.判断是否已经打 ...

随机推荐

  1. hadoop streaming anaconda python 计算平均值

    原始Liunx 的python版本不带numpy ,安装了anaconda 之后,使用hadoop streaming 时无法调用anaconda python  , 后来发现是参数没设置好... 进 ...

  2. SSIS 2012 Error: An Integration Services class cannot be found

    升级SSIS到SQL Server 2012,服务器只安装了SSIS一个功能,应用程序执行dtsx包时报错如下: An Integration Services class cannot be fou ...

  3. mongodb中的_id的ObjectId的生成规则

    MongoDB中存储的文档必须有一个"_id" .这个键值可以是任何类型,默认是ObjectID对象.在一个集合里,每个文档都有一个唯一的“_id”,确保集合里的每个文档都能被唯一 ...

  4. playbook实现nginx安装

    1. 先在一台机器上编译安装好nginx,然后打包 tar -zcvf nginx.tar.gz /usr/local/nginx --exclude=conf/nginx.conf --exclud ...

  5. mongo启动

    mongo启动 删除data目录里的mongo.lock bin 目录里执行 net  start MongoDB

  6. 如何禁止ping

    PING命令是个危险的命令,用它可以知道你的操作系统,IP等,为了安全禁PING是个很好的方法,也是防DDOS攻击的.应该是有外部网络试图连接你的UDP的1434端口,不知道你打了补丁没有. 黑客入侵 ...

  7. SpringMVC对于传入多个对象参数遇到的问题

    最近遇到一个问题,一个添加接口,需要添加三个对象,而且这三个对象里面的属性名很多都是一样的,本来是拿三个对象直接接收值,但是因为很多属性名都一样,所以接收不到值.百度也有的说把这三个对象的参数重命名然 ...

  8. LeetCode——Range Sum Query - Immutable

    Question Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), ...

  9. scala(一)方法&函数

    写在前面 众所周知,scala一向宣称自己是面向函数的编程,(java表示不服,我是面向bean的编程!)那什么是函数? 在接触java的时候,有时候用函数来称呼某个method(实在找不出词了),有 ...

  10. 4.scala中的类

    版权申明:转载请注明出处.文章来源:http://bigdataer.net/?p=269 排版乱?请移步原文获得更好的阅读体验 1.针对不同字段生成的方法 字段生成的方法备注 var/val nam ...