div居中和table居中,jQuery获取下拉列表值

一、div居中

margin-left: auto;margin-right: auto;

<div ></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  Width="120px" runat="server">有效截止日期:</asp:label></td><td><asp:label  Width="120px" runat="server" ForeColor="#FF8080"></asp:label></td><td colspan="2"></td></tr>
    <tr><td> Check-in:<asp:dropdownlist  Width="48px" runat="server" ></asp:dropdownlist></td>
    <td><asp:dropdownlist  Width="85px" runat="server"></asp:dropdownlist></td>
    <td>Nights :<asp:dropdownlist  Width="48px" runat="server" ></asp:dropdownlist></td>
    <td><asp:Button  runat="server" Text="查询" /><asp:Button  runat="server" Text="Export to Excel" /></td>
    </tr>
     <tr>
     <td colspan="2">开始时间:
     <asp:dropdownlist  Width="48px" runat="server" ></asp:dropdownlist> &nbsp; 
     <asp:dropdownlist  Width="85px" runat="server"></asp:dropdownlist>
     </td>
      <td colspan="2">截止时间:
      <asp:dropdownlist  Width="48px" runat="server" ></asp:dropdownlist> &nbsp; 
     <asp:dropdownlist  Width="85px" runat="server"></asp:dropdownlist>
      </td>
     </tr>
     <tr><td colspan="4"><asp:Button  runat="server"  Text="Save"/></td></tr>
     </table>

三、下拉列表jQuery获取值

var fneSupplierid = $("#ddFneSuppliers").val(); //获取Select选择的Value

var fneSuppliers = $("#ddFneSuppliers").find("option:selected").text(); 获取text值 显示看到的。