我創建了一個帶有選擇和選項標籤的下拉菜單,但是這些不允許我鏈接到其他網頁,我讀到必須創建一個無序列表,因爲我錯誤地創建了我的下拉列表。將選擇下拉列表更改爲無序列表
這裏是我的代碼目前的樣子: https://jsfiddle.net/pferdefleisch/Q7HNj/1/
<select id="one">
<option value = "catalouge">
<a href = "catalouge.html">PRODUCT CATALOUGE</a>
</option>
<option>
Vacuum Components
</option>
<option>
Valve Components
</option>
<option>
Roughing Components
</option>
<option>
Vacuum Measurement
</option>
<option>
Glass Components
</option>
<option>
Electrical Feedthroughs
</option>
<option>
Motion and manipulation
</option>
<option>
Thin Film Products
</option>
</select>
CSS:
#one {
margin: 10px;
padding: 10px;
width: 20%;
font-family: Palatino Linotype;
font-size: 15px;
-moz-appearance: none;
-moz-box-shadow: 0 3px 0 #ccc, 0 -1px #2961c1 inset;
box-shadow: 0 3px 0 #ccc, 0 -1px purple inset;
list-style: none;
position:absolute;top:23%;left:2%;
}
我怎麼會變成一個正常的下拉列表中呢?
使用bootstrap我的朋友,使用bootstrap :: http://getbootstrap.com/components/#navbar – AdamJeffers
這對我來說已經很正常了。你是什麼意思,它不允許你鏈接到其他網頁? – lurker
我使用這個作爲我的導航欄,我想鏈接到其他.html頁面,但我聽說這是不正確的做事方式 – Alex