一、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. JAVA垃圾回收机

    垃圾回收基本算法 串型回收和并行回收 串行回收始终在一个CPU上执行回收操作.并行回收则将回收任务分为好几步,每步使用不同的CPU执行,这样加快了执行速度,有点像流水线作业. 并发执行和暂停应用程序 ...

  2. Spring MVC 流程

    1. 检查是否为上传文件. 2. 通过HandlerMapping获取HandlerExecutionChain: DispatcherServlet 中包含:handlerMappings , 遍历 ...

  3. Linux查找含有某字符串的文本文件

    转自:http://www.cnblogs.com/wangkongming/p/4476933.html 如果你想在当前目录下 查找"hello,world!"字符串,可以这样 ...

  4. Tomcat的工作模式和运行模式

    (1)工作模式 Tomcat作为servlet容器,有三种工作模式: 1.独立的servlet容器,servlet容器是web服务器的一部分: 2.进程内的servlet容器,servlet容器是作为 ...

  5. JavaScript校验网址

    JavaScript校验网址 var linkUrl = 'https://www.baidu.com' if( typeof (linkUrl) != undefined && li ...

  6. Hive常见问题

    1.HQL是否区分大小写 不区分 hive> select AGE from default.studeNT; --不区分大小写,即使是表中字段 2.查看创建表过程 show create ta ...

  7. Live Score FAQ

    Q: Why doesn't the selected game go to top? A: The game which include your favorite team will be alw ...

  8. 解决IE6已终止操作问题

    令人崩溃的IE6问题再次出现,打开某个页面时,弹出提示框“Internet Explorer无法打开Internet 站点...已终止操作”.    查了一下资料,感觉“因为js(一个比较复杂的js) ...

  9. 安装配置mariadb-10.1.19

    本文参考:http://chenzehe.iteye.com/blog/1266260  感谢原作者的分享! 首先安装/更新一些编译时会用到的基础包 [root@localhost local]# y ...

  10. 计算java对象的内存占用

    代码引用自:https://blog.csdn.net/antony9118/article/details/54317637  感谢博主分享: import java.util.ArrayList; ...