How to keep <select> dropdown open to test styles on <option> in firebug?

自古美人都是妖i 提交于 2021-02-18 22:19:32

问题


How to keep <select> dropdown open to test styles on in firebug?

I'm trying to styling <option>

<select class="select">
    <option selected>Select</option>
    <option>Blue</option>
    <option >Red</option>
    <option>Green</option>
    <option>Yellow</option>
    <option>Brown</option>
</select>

But every time i need to open and see what's happening after changing css in firebug. I know it doesn't take much time to open an see the result.

But I'm just curious to know if there is any trick to keep the dropdown open


回答1:


Make it multiple enabled.

<select class="select" multiple="multiple">
    <option selected>Select</option>
    <option>Blue</option>
    <option >Red</option>
    <option>Green</option>
    <option>Yellow</option>
    <option>Brown</option>
</select>


来源:https://stackoverflow.com/questions/8430597/how-to-keep-select-dropdown-open-to-test-styles-on-option-in-firebug

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!