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>
精彩评论