使用open 属性来指定细节对于用户应该是可见的。您可以尝试运行以下代码以实现novalidate 属性-
<!DOCTYPE html> <html> <head> <title>HTML open attribute</title> </head> <body> <details open> <summary>Some More Information</summary> <p>Providing more info about the details here.</p> </details> </body> </html>