最近開始在用 Bootstrap 了,用這東西好處就是可以無腦把你網站弄的漂漂釀釀的

但缺點就是做出來的網頁長的都很像 XDDD

但其實也是可以用下面這個連結弄一個自己的 Bootstrap 主題

http://pikock.github.io/bootstrap-magic/

只是還是要有一些配色的美感~

 

然後最近在用的時候發現了一個小問題

那就是如果 table 的 td 裡面含有 input、select、div......之類的話

像下面單純如我的 html 

<table border="1" class="table">

<tbody>

<tr><td><input type="text" /></td></tr>

<tr><td>test test</td></tr>

<tr><td><input type="button" /></td></tr>

<tr><td><input type="text" /></td></tr>

</tbody>

</table>

 

結果會長成這樣,textbox 底部莫名其妙被撐高了

如果表單控制項一多,頁面看起來超醜的啊

Clipboard02  

Google 了好久都找不到解決的方式,最後看到這篇.....

https://github.com/twbs/bootstrap/issues/2200

開發者團隊出來說了

You can remove this easily if you want, but we can't broadly make that change for everyone.

這個問題不會做任何更動,所以就請自己來吧

css 自己加上 

 

.table td * {

    margin-bottom:0px;

}

 

這樣就解決囉

好像有在混篇數的嫌疑 XDDD

 

 

 

arrow
arrow
    全站熱搜

    小雕 發表在 痞客邦 留言(0) 人氣()