用html写一个下拉菜单
时间: 2023-05-29 12:07:05 浏览: 94
<!DOCTYPE html>
<html>
<head>
<title>下拉菜单示例</title>
</head>
<body>
<label for="fruit">选择一个水果:</label>
<select id="fruit" name="fruit">
<option value="apple">苹果</option>
<option value="orange">橙子</option>
<option value="banana">香蕉</option>
<option value="grape">葡萄</option>
</select>
</body>
</html>
阅读全文