今晚刷到一个公众号挺不错的,每天都推荐2个4min前端的小知识点和CTF的writeup
1. <fieldset>+<legend> <!--模块分组打包-->
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8">
</head>
<body>
<fieldset> <!--模块分组打包-->
<legend>用户登陆</legend>
用户名:<input type="text"/><br/>
密 码:<input type="password"/>
</fieldset>
</body>
</html>
2. <datalist>
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8">
</head>
<body>
<input type="text" value="请输入明星" list="star"/>
<datalist id="star">
<option>刘德华1</option>
<option>刘德华2</option>
<option>刘德华3</option>
<option>郭富城1</option>
<option>郭富城2</option>
</datalist>
</body>
</html>