源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="form_action.php"> <select name="cars" multiple> <option value="volvo">沃尔沃</option> <option value="saab">萨博</option> <option value="opel">欧宝</option> <option value="audi">奥迪</option> </select> <input type="submit"> </form> <p>windows 按住Ctrl键 ,Mac按住 Command键 多选</p> </body> </html>
运行结果