datatable生成表单自适应窗口问题!_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:37:06
Original
1643 people have browsed it

最近在写一个网页里面用到datatable生成表单,怎样才能做到让表单自适应窗口大小?当窗口大小变化时,表单宽高也相应发生变化。我能做到自适应宽度或高度,但不能让高宽同时适应。这个怎么解决呢?


回复讨论(解决方案)

设置表单的宽度为100%就行了啊,你是用Jquery生成datatable的?

http://wenku.baidu.com/link?url=YPsIltxm8_A-Ma-RXhMXHDL9fnrf7_8u9uRhKXK9CJMhzjHlp98v9AXVSaR6s16dqQKATtaY7lVzrHgqsmOX-sjLv2MqAmYdsFcmKrBwKxW

设置表单的宽度为100%就行了啊,你是用Jquery生成datatable的?

http://wenku.baidu.com/link?url=YPsIltxm8_A-Ma-RXhMXHDL9fnrf7_8u9uRhKXK9CJMhzjHlp98v9AXVSaR6s16dqQKATtaY7lVzrHgqsmOX-sjLv2MqAmYdsFcmKrBwKxW


宽度可以自适应,问题怎么让高度也自适应,这个表格是生成在一个div里面的,div宽高是根据窗口大小变化的。
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!