开发者

table last row border visible

开发者 https://www.devze.com 2023-02-22 17:00 出处:网络
even after setting the tr:last-child\'s border: none, border is still visible. The edit button sho开发者_如何学运维uld be after the last row. But it got position left. http://jsfiddle.net/priyaa2002/m

even after setting the tr:last-child's border: none, border is still visible. The edit button sho开发者_如何学运维uld be after the last row. But it got position left. http://jsfiddle.net/priyaa2002/mBfk8/ Here is how it should be

table last row border visible


You have a floating <tr> and a floating </div>:

<div id="wrapper">
    <div class="para">
        <table id="info-table">
            <tr>
                <td>name:</td>
                <td id="name">name</td>
            </tr>
            <tr>
                <td>id:</td>
                <td id="myid">myuid</td>
            </tr>
            <tr>
                <td>email:</td>
                <td id="email">mysuperemail@email.com</td>
            </tr>
            <tr> <!-- WHY? -->
         </table>
    </div>
<div class="edit">
    <button type="submit">edit</button>
</div>
</div> <!-- WHY? -->

Get rid of them like so:

<div id="wrapper">
    <div class="para">
        <table id="info-table">
            <tr>
                <td>name:</td>
                <td id="name">name</td>
            </tr>
            <tr>
                <td>id:</td>
                <td id="myid">myuid</td>
            </tr>
            <tr>
                <td>email:</td>
                <td id="email">mysuperemail@email.com</td>
            </tr>
         </table>
    </div>
<div class="edit">
    <button type="submit">edit</button>
</div>

In the future validate your HTML ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号