首页 > 解决方案 > Is it possible to have a regular list with tag in html? I have seen that and tag always create a drop down list. However, I am trying to have a regular list, the one that can be created by <ul><li></li></ul>. I tried th

问题描述

标签: htmlcsslistselectdrop-down-menu

解决方案


将代码保存在html文件中,实时测试链接

<div class="comboBox" id="combo">
	<select class="selec" id="select" onchange="window.location=this.options[this.selectedIndex].value">
		<option value=""><ol><li>Choose site<li><ol/></option>
	<option value="https://www.google.com/"><ol><li>google<li><ol/></option>
	<option value="https://www.facebook.com"><ol><li>FACEBOOK<li><ol/></option>
	<option value="https://www.youtube.com/"><ol><li>YOUTUBE<li><ol/></option>
	</select>
</div>


推荐阅读