Home  >  Article  >  Web Front-end  >  How to implement one adaptive and one fixed div height_html/css_WEB-ITnose

How to implement one adaptive and one fixed div height_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:581052browse



div2


div2






Reply to discussion (solution)

part2 fixed height height="30px"

This is direct Just write. .

div2

part1 can be set to auto or not set to high. . Part2 is just height:30px.





                                                                            🎜>                                                                   View>


This is my code, but it still doesn’t work!


My part1 div is a table control. There are three records in the table. The height of part1 div can only display one record, and the table will not expand the part1 div

Use js to dynamically adjust

Statement:
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