How to fit a select tag in a table cell properly

后端 未结 3 659
无人共我
无人共我 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:59

    Play with the border of the select (this may or may not work in Safari)

    select {
        border: 0;
        width: 100%;
    }
    

    This is a JsFiddle: http://jsfiddle.net/EuNw4/

    Also instead of a lot of option onclick="JavaScript:quarterUpdate()" use select onchange"JavaScript:quarterUpdate()"... Inline Javascript like this shouldn't be used, you should do:

    // jQuery
    jQuery(document).ready(function($) {
        $('#isinz').on('change', quarterUpdate());
    });
    

提交回复
热议问题