代码
提交代码
<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <title>颜色选择器</title> </head> <body> <form name="test" id="test" method="post" action="test.php"> 选择颜色:<input type="color" form="ant" name="color"/> <input type="submit" value="提交"> </form> </body> </html>
运行结果