How to fit a select tag in a table cell properly

后端 未结 3 662
无人共我
无人共我 2021-02-19 09:20

I am desperately trying to make a select tag fit in a table cell like it belongs there, not like someone wedged it in with a crowbar. Here is the code followed by the picture o

3条回答
  •  一向
    一向 (楼主)
    2021-02-19 09:51

    From your question, I understand that this is what you want:

    http://jsfiddle.net/8vwV3/

    table {
        border-collapse: collapse;
    }
    
    td {
        border: 1px solid #999;
        padding:3px 10px;
    }
    
    td select {
        border: none;
    }
    

提交回复
热议问题