批改状态:合格
老师批语:!important一般作为调试
-GET 控制在4K以内,可以简单理解明文发送请求。POST暗文,相当安全,内容可以多一点。
2.单选按钮
<label for="usrename">账号:</label><input type="text" id="username" name="username" placeholder="不好于8位" required autofocus value="默认值"/>
<label for="secret">性别</label><input type="radio" name="gender" id="male" value="male" /><labelfor="male">男</label><input type="radio" name="gender" id="female" value="femle" /><labelfor="female">女</label><inputtype="radio"name="gender"id="secret"value="secret"checkeda/><label for="secret">保密</label>
2.datalist 的ID属性一定要跟 input 的LIST 属性名称一致
<label for="level">会员等级</label><select name="level" id=""><option value="1">一星会员</option><option value="2">二星会员</option><option value="3" selected>三星会员</option><option value="4">四星会员</option></select>
<label for="">搜索关键字</label><input type="serch" name="serch" list="keywords" /><datalist id="keywords"><option value="美女">美女</option><option value="帅哥">帅哥</option><option value="动漫">动漫</option></datalist>
<style>/* 属性选择器: 选择器+声明块=规则*/[id='title']{color:red;background-color:yellow}/* 等同于 # +{规则}*/#title {color:red;background-color:yellow}</style><p id="title">今晚测试一下</p>
<style>/* 属性选择器: 选择器+声明块=规则*/[class='title']{color:red;background-color:yellow}/* 等同于 . +{规则}*/.title {color:red;background-color:yellow}</style><p class="title">今晚测试一下</p>
/* 子元素 */.list> li{ border:1px solid #000}/* 后代空格 */.list li{ border:1px solid #000}/* 相邻 */.list.item+*{ border:1px solid #000}/* 所有一起 */.list.tiem~*{ border:1px solid #000}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号