开发者

how to create drop down list with html and css only?

开发者 https://www.devze.com 2023-01-03 06:26 出处:网络
I want to know easiest 开发者_开发百科way to create drop down list with html and css only.Use the select tag.

I want to know easiest 开发者_开发百科way to create drop down list with html and css only.


Use the select tag.

<select>
    <option>red</option>
    <option>green</option>
    <option>blue</option>
    <option>yellow</option>
</select>


css


<style type="text/css">
select.mySelect{}
select.mySelect option{}
</style>

html

<select class="mySelect">
<option>Display</option>
</select>

0

精彩评论

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