首页
HTML
HTML 输入类型
试用:input type = month
运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>Month Field</h2> <p>The <strong>input type="month"</strong> allows the user to select a month and year.</p> <form action="/action_page.php"> <label for="bdaymonth">Birthday (month and year):</label> <input type="month" id="bdaymonth" name="bdaymonth"> <input type="submit" value="Submit"> </form> <p><strong>Note:</strong> type="month" is not supported in Firefox, Safari, or Internet Explorer 11.</p> </body> </html>