css - Div 没有完全扩展 100% 高度

标签 css html

我想将左侧的 div 扩展到页面底部。但问题是它停在页面底部,但当我向下滚动时,它保持垂直大小!它不会随着向下滚动而扩展:-(请问有什么想法吗?

html:

<div class="menu_gauche">

<div class="ligne_menu_gauche"><div class="accueil"></div><div class="menu_txt">Accueil<a href="/bgladm"><span class="fullspan"></span></a></div></div>
<div class="ligne_menu_gauche" style="background:#FAFAFA;"><div class="compte"></div><div class="menu_txt">Compte<a href="/bgladm-compte"><span class="fullspan"></span></a></div></div>
<div class="ligne_menu_gauche"><div class="options"></div><div class="menu_txt">Options<a href="/bgladm-options"><span class="fullspan"></span></a></div></div>
<div class="ligne_menu_gauche"><div class="notif"></div><div class="menu_txt">Notifications<a href="/bgladm-notif"><span class="fullspan"></span></a></div></div>
<div class="ligne_menu_gauche"><div class="aide"></div><div class="menu_txt">Aide<a href=""><span class="fullspan"></span></a></div></div>
<div class="ligne_menu_gauche"><div class="logout"></div><div class="menu_txt">Deconnexion<a href="/logout"><span class="fullspan"></span></a></div></div>

<div class="vide_menu_gauche"></div>
</div>

<div class="contenu_droit"><div class="envglob_form">
<div class="enveloppe_form">
<input type="text" class="input_text_compte" value="" id="email_compte"> <span>Email</span><br>l
</div>

<div class="enveloppe_form">
<input type="password" class="input_text_compte" id="mdp_actuel"> <span>Mot de passe actuel</span><br><br>
<input type="password" class="input_text_compte" id="mdp_1"> <span>Nouveau mot de passe</span><br>
<input type="password" class="input_text_compte" id="mdp_2"> <span>Retappez le mot de passe</span>
</div>

<div class="enveloppe_form">
<input type="text" class="input_text_compte" id="nom_compte" value=""> <span>Nom</span><br>
<input type="text" class="input_text_compte" id="prenom_compte" value=""> <span>Prénom</span><br>
</div>

<div class="enveloppe_form">
<input type="radio" name="sexe_compte" id="sexe_compteh" value="1"> Homme<br>
<input type="radio" name="sexe_compte" id="sexe_comptef" value="0" checked=""> Femme
</div>

<div class="enveloppe_form"><select id="age"><option value="1933">1933</option><option value="1934">1934</option><option value="1935">1935</option><option value="2004">2004</option></select> <span>Année de naissance</span>
</div>

</div>

<div class="envglob_form2">
<div class="enveloppe_form">
<div class="interets"><span>Centres d'intérêt</span></div><div class="interets" id="interets_id"><div class="interet_compte"><input type="checkbox" name="interets[]" value="1"> Actualités</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="2" checked=""> Animaux</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="3"> Art</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="4" checked=""> Automobile</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="27"> Autre</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="5"> Cinéma</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="6"> Famille</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="7"> Finance</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="8"> Formation</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="9"> Gastronomie</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="10"> Humour</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="11"> Immobilier</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="12"> Informatique</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="13" checked=""> Internet</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="14"> Jeux</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="15"> Littérature</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="16" checked=""> Maison</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="17"> Mode</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="18"> Moto</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="19"> Musique</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="20"> People</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="21"> Photographie</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="22"> Santé</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="23" checked=""> Sciences</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="24"> Sport</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="25"> Téléphonie</div><div class="interet_compte"><input type="checkbox" name="interets[]" value="26"> Voyage</div>
</div>
</div>
</div>
<div class="env_save">
<div id="canvasloader-container" class="loading_anim" style="display: none;"><div id="canvasLoader" style="display: block; position: absolute; top: -49px; left: -49px;"><canvas width="98" height="98"></canvas><canvas width="98" height="98" style="display: none;"></canvas></div></div>
<div class="save" id="save_compte"></div>
</div>
<a href="/supprcompte" class="bouton_suppr">Supprimer le compte</a>
</div>

你会在这里找到 css:http://jsfiddle.net/gMNzd/

最佳答案

如果你想相应地调整高度,你可以添加一个clearfix

<div class="left-div">your content here<div class="clearfix"></div></div>

clearfix 在这里解释...检查链接
http://www.webtoolkit.info/css-clearfix.html

关于css - Div 没有完全扩展 100% 高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17994352/

相关文章:

html - 使用 CSS 在鼠标悬停时放大图像

jquery - 如何将两列合二为一以响应

javascript - 滚动时CSS更改导航栏背景颜色

javascript - 如何在最近的 tr 选择上更改 td 的 img src 并将鼠标悬停在

html - 将子 div 扩展到一侧

jquery - 单击事件不触发 CSS 指针事件 : none

javascript - 替换两个标签之间的 HTML

html - IE 和 Firefox 中的弹跳滚动条

javascript - AngularJS select ng-repeat 中所选选项的不同值

css - 单向动画