How to set the tab height for web tabs? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:26:12
Original
1440 people have browsed it

代码很简单,但我看了一下午也没法给选项卡设置高度,如果不能设置那默认的显示高度又是怎么定出来的呢?
望高人赐教,万分感谢。代码如下:




简洁Tab

<script> <br> <!-- <br /> /*第一种形式 第二种形式 更换显示样式*/ <br /> function setTab(m,n){ <br /> var tli=document.getElementById("menu"+m).getElementsByTagName("li"); <br /> var mli=document.getElementById("main"+m).getElementsByTagName("ul"); <br /> for(i=0;i<tli.length;i++){ <br /> tli[i].className=i==n?"hover":""; <br /> mli[i].style.display=i==n?"block":"none"; <br /> } <br /> } <br /> <br /> //--> <br> </script>






 


  • News List

  • Comment List

  • Technology List

                                                               ;/div>








Reply to the discussion ( Solution)


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!