使用size属性来设置HTML中
您可以尝试运行以下代码来实现size属性 -
<!DOCTYPE html> <html> <body> <p>Select the countries you have visited till now,</p> <select size = "5"> <option value = "india">India</option> <option value = "us">US</option> <option value = "canada">Canada</option> <option value = "aus">Australia</option> <option value = "bangladesh">Bangladesh</option> </select> </body> </html>
以上是如何在HTML中指定