<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>hello</title>
</head>
<body>
<form action="demo_form.php"method="get">
<!--
一个页面只能指定一个autofocus值
-->
<input type="search" name="search1"autofocus/>
<input type="submit" value="百度一下" />
</form>
</body>
</html>
html中怎么自动获得搜索文本框的光标焦点
最新推荐文章于 2024-07-17 14:47:00 发布