html
文章平均质量分 64
abiao555
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
jquery操作tr
<div class="form-group" style="margin-bottom:10px;"> <label for="title">日规则</label> <a class="btn btn-info btn-xs" href="javascript:;" id="addtr1" style="float: right;margin-right: 20px;" role="button">添加</a> <d...原创 2021-07-27 10:24:49 · 417 阅读 · 0 评论 -
提交表单时设置按钮为disabled防止多次提交操作
注意表单内禁止设置name=”submit“的表单域。否则会与jquery的submit冲突导致不能提交成功<form id="edittempl" name="edittempl" action="xxxxxxx" method="post">。。。。其他相关代码。。。。<button type="button" id="butSubmits">提交申请</button></form><script> $("#butSu..原创 2020-10-27 15:31:35 · 1140 阅读 · 0 评论 -
表单input设置为不可编辑状态
方法1:<input type="text" name="lname" disabled> //不向后台传值方法2:<input type="text" name="country" value="China" readonly="readonly" /> //向后台传值原创 2020-07-09 11:06:48 · 2007 阅读 · 0 评论 -
input表单输入框禁止显示历史数据
<input type="text" name="title" autocomplete="off" placeholder="请输入标题">如果发现很多设置了不起这作用。很可能是表单中有密码这种类型的input例如:<input type="password" name="pass">解决方法是给的表单添加autocomplete="new-password"属性即可:<input type="password" autocomplete="new-pass..原创 2020-07-09 08:59:02 · 1178 阅读 · 0 评论 -
html+css前端笔记
盒模型:1.同级上下叠压;2.父子级使用margin或margin-top会出现塌陷现象(解决:在父级使用:1.overflow:hidden;2.padding-top;3.border)3.(塌陷现象的原因:当父级的第一个子元素是块元素并且使用了margin或margin-top)块标签:display:block案例标签:div,p,h1~h6,ul,ol,li特点:独占一行;默认宽度占满父级;高度为0行标签:display:inline案例标签:span,..原创 2020-06-29 08:55:51 · 154 阅读 · 0 评论
分享