用 CSS 修饰表单的输入字段
若要修饰表单的输入字段,可以尝试运行以下代码。修饰 <input>
示例
<!DOCTYPE html> <html> <head> <style> input { width: 100%; } </style> </head> <body> <p>Fill the below form,</p> <form> <label for = "subject">Subject</label> <input type = "text" id = "subject" name = "sub"> <label for = "student">Student</label> <input type = "text" id = "student" name = "stu"> </form> </body> </html>
广告