3 个解决方案
#1
这个,还真没听说过
#2
自己做个div显示就好了
#3
<select name="ss" id="ss">
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
</select>
<button type="button" onclick="demo()">点击</button>
<script type="text/javascript">
function demo(){
document.getElementById("ss").focus();
var WshShell = new ActiveXObject("Wscript.Shell");
try{
WshShell.SendKeys("%{DOWN}");
}catch(e){}
WshShell.Quit;
}
<script>
施主还是放肆吧,这玩意只能IE本地里玩玩。或者你用 模拟的select
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
</select>
<button type="button" onclick="demo()">点击</button>
<script type="text/javascript">
function demo(){
document.getElementById("ss").focus();
var WshShell = new ActiveXObject("Wscript.Shell");
try{
WshShell.SendKeys("%{DOWN}");
}catch(e){}
WshShell.Quit;
}
<script>
施主还是放肆吧,这玩意只能IE本地里玩玩。或者你用 模拟的select
#1
这个,还真没听说过
#2
自己做个div显示就好了
#3
<select name="ss" id="ss">
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
</select>
<button type="button" onclick="demo()">点击</button>
<script type="text/javascript">
function demo(){
document.getElementById("ss").focus();
var WshShell = new ActiveXObject("Wscript.Shell");
try{
WshShell.SendKeys("%{DOWN}");
}catch(e){}
WshShell.Quit;
}
<script>
施主还是放肆吧,这玩意只能IE本地里玩玩。或者你用 模拟的select
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
<option value="v">sd</option>
</select>
<button type="button" onclick="demo()">点击</button>
<script type="text/javascript">
function demo(){
document.getElementById("ss").focus();
var WshShell = new ActiveXObject("Wscript.Shell");
try{
WshShell.SendKeys("%{DOWN}");
}catch(e){}
WshShell.Quit;
}
<script>
施主还是放肆吧,这玩意只能IE本地里玩玩。或者你用 模拟的select