Place div on bottom

This question already has an answer here:

  • How can I position my div at the bottom of its container? 21 answers
  • How to align content of a div to the bottom? 24 answers
  • Align DIV's to bottom or baseline 9 answers

  • vertical-align:bottom应用于div。

    .element{
        border: 1px solid gray;
        font-size: 8px;
        text-align: center;
        display: inline-block;
        margin-bottom: 0;
        vertical-align:bottom;
     }
    

    .element{
            border: 1px solid gray;
            font-size: 8px;
            text-align: center;
            display: inline-block;
            margin-bottom: 0;
            vertical-align:bottom;
        }
    <div class="jsContent">
        <div class="element" style="width: 20px; height: 252px;">018</div><div class="element" style="width: 20px; height: 350px;">017</div><div class="element" style="width: 20px; height: 254px;">016</div><div class="element" style="width: 20px; height: 614.8px;">015</div><div class="element" style="width: 10px; height: 100px;">014</div><div class="element" style="width: 20px; height: 100px;">013</div><div class="element" style="width: 20px; height: 140px;">012</div><div class="element" style="width: 20px; height: 100px;">011</div><div class="element" style="width: 20px; height: 100px;">010</div><div class="element" style="width: 30px; height: 232.5px;">009</div><div class="element" style="width: 30px; height: 270px;">008</div><div class="element" style="width: 30px; height: 154px;">007</div><div class="element" style="width: 30px; height: 270px;">006</div><div class="element" style="width: 30px; height: 34px;">005</div><div class="element" style="width: 30px; height: 465px;">004</div><div class="element" style="width: 30px; height: 305px;">003</div><div class="element" style="width: 30px; height: 562.5px;">001</div>
    </div>
    链接地址: http://www.djcxy.com/p/75786.html

    上一篇: HTML中不同字体大小的左/右对齐

    下一篇: 将div放在底部