编辑下面的代码:【加编码】
<html> <body> <form action="demo-form.php" method="get"> <fieldset name="personalia"> Name: <input type="text" name="username"><br> Email: <input type="text" name="usermail"><br> </fieldset> <button type="button" onclick="form.personalia.style.backgroundColor='yellow'">Change background color of fieldset</button> <input type="submit"> </form> <p><b>Note:</b> The name attribute of the fieldset element is not supported in IE.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂