HTML5 表单元素datalist

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <form action="demo.asp" method="get">
        webpage:<input type="url" name="user_url" list="user_list"/>    
        <datalist id="user_list">
            <option label="qq.com" value="qq.com" />
            <option label="ww.com" value="ww.com" />
            <option label="ll.com" value="ll.com" />
        </datalist>
            <input type="submit"/>
        </form>
    </body>
</html>

 

posted @ 2020-08-18 22:08  DurianTRY  阅读(177)  评论(0编辑  收藏  举报