功能实现:
现有4个按钮:向左,向右,全向左,全向右。点击按钮实现所对应功能,将选中选项移动
完整代码:
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style type="text/css">
select {
width: 100px;
height: 200px;
}
</style>
</head>
<body>
<select size="8">
<option>刘备</option>
<option>张飞</option>
<option>关羽</option>
<option>赵云</option>
<option>马超</option>
</select>
<input type="button" value=">" οnclick="moveSingle(0)" />
<input type="butt