开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜