Home  >  Article  >  Web Front-end  >  div高度一个自适应,一个固定如何实现_html/css_WEB-ITnose

div高度一个自适应,一个固定如何实现_html/css_WEB-ITnose

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



div2


div2




要求:part1 随浏览器窗口的变大缩小,自适应高度
      part2 高度固定 height="30px"

各位大侠这个如何实现


回复讨论(解决方案)

  part2 高度固定 height="30px"
这个直接写就行了。。

div2

part1可以不设置高或调协成auto都行。part2直接就是height:30px就行了。


   
   
   

     
   

          
         
        

       
   


  


这个是我的代码,还是不行啊!

我的part1  div里是个表格控件,表格里有三条记录,part1 div 的高度只能显示一条记录,表格也不会给 part1 div给撑开

用js动态调整

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