zoukankan      html  css  js  c++  java
  • div居中和table居中,jQuery获取下拉列表值

    一、div居中

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

    <div  style="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="2"></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="2">开始时间:
         <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="2">截止时间:
          <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="4"><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值 显示看到的。

  • 相关阅读:
    使用NSIS打包程序
    vue.config.js 的完整配置(超详细)!
    前端 Electron Nsis Web 安装包配置方法
    使用NSIS制作安装包
    Echarts X轴(xAxis)
    Windows环境下Jenkins打包、发布、部署
    一、NSIS介绍
    织梦DEDECMS首页调用单页文档内容并带过滤HTML的方法
    php调试方法
    jQuery 图片轮播滚动效果
  • 原文地址:https://www.cnblogs.com/annabook/p/4475609.html
Copyright © 2011-2022 走看看