Home > Web Front-end > HTML Tutorial > 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
Release: 2016-06-24 12:08:58
Original
1071 people have browsed it



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

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template