ie8下下拉菜单文字为空

<html>
<head>
<title></title>
<script type="text/javascript">
function init()
{
var s = document.getElementById("s");
var op = document.createElement("option");
op.appendChild(document.createTextNode("F"));
s.appendChild(op);
}
</script>
</head>
<body onload="init()">
<select id="s" style="width:100px;background:lightskyblue"></select>
</body>
</html> 

Ie8下,new Option()后,appendChild,ie8下下拉菜单文字为空的问题

你可能感兴趣的:(下拉菜单)