- 博客(9)
- 收藏
- 关注
原创 form表单
form表单中的enctype="multipart/form-data"的含义:enctype就是encodetype就是编码类型的意思。multipart/form-data是指表单数据有多部分构成,既有文本数据,又有文件等二进制数据的意思。需要注意的是:默认情况下,enctype的值是application/x-www-form-urlencoded,不能用于文件上传,只有使用了m...
2020-02-05 20:10:19
110
原创 js动态弹窗
html及css基本样式 <p>关卡1</p> <button id="los" type="button">失败</button> <button id="vic" type="button">成功</button> <div id="con"></div> .box{ ...
2020-02-03 10:40:40
1045
原创 js鼠标拖动事件
html及css样式<div id="box"></div> *{padding: 0;margin: 0;} #box{ width: 100px; height: 100px; background: #FFC0CB; position: absolute; }js实现拖动效果 box.onclick=fu...
2020-02-03 10:34:41
213
原创 js事件委托
html写基本内容 <button id="but" type="button">新增</button> <ul id="ul"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </u...
2020-02-03 10:27:34
74
原创 js全选及全不选按钮
html添加全选框 <input type="checkbox" name="all" id="all" value="" />全选<br /> <input type="checkbox" name="kris" id="" value="" /><br /> <input type="checkbox" name="kris" ...
2020-02-03 10:01:39
359
原创 js写动态吸顶
简单的html及css样式 <div id="box1"></div> <div id="box2"></div> *{ padding: 0; margin: 0; } body{ height: 2000px; } #box1{ width: 100%; height: ...
2020-02-03 08:56:56
263
原创 js写简化放大镜
html写原始图及放大图<div id="box1"> <img src="img/fan1.jpg" > <div id="box2"> </div> </div> <div id="box3"> <img id="img" src="img/fan1.jpg" > ...
2020-02-03 08:47:31
65
原创 js写轮播图,效果为每秒图片左移,循环
html写六张图片及序号按钮<div class='subbanner' id ='subbanner'> <div class='sub_banner_box'> <ul class='sub_banner_boxItem clearfix'> <li> ...
2020-02-02 17:01:09
546
原创 jquery attr()方法获取input的checked属性问题
问题:经常使用jQuery插件的attr方法获取checked属性值,获取的值的大小为未定义,此时可以用prop方法获取其真实值,下面介绍这两种方法的区别:1.通过prop方法获取checked属性,获取的checked返回值为boolean,选中为true,否则为flase<input type="checkbox" id="selectAll" οnclick="checkAll(...
2020-01-30 20:44:20
461
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人