摘要: 在需要改变鼠标样式的元素添加以下代码 1 div{cursor:default}/*默认显示正常指针*/ 2 div{ cursor:help}/*帮助选择*/ 3 div{ cursor:wait}/*忙*/ 4 div{ cursor:corsshair}/*精确选择*/ 5 div{ curs 阅读全文
posted @ 2020-04-24 10:45 可达鸭给我冲鸭 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 1、去除input的边框 1 .form-control{ 2 border:0; 3 webkit-box-shadow:none; 4 box-shadow:none; 5 } 2、去除input选中时的蓝色边框线 1 .form-control:focus{ 2 border-color:#f 阅读全文
posted @ 2020-04-23 14:49 可达鸭给我冲鸭 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: 1、iframe <iframe src="html/template1.html" width="100%" height="50" frameborder="0"></iframe> 2、object <object data="html/template2.html" width="100%" 阅读全文
posted @ 2020-04-23 10:52 可达鸭给我冲鸭 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 1 <select> 2 <c:forEach begin="1" end="${totalPage }" var="i"> //begin起始位置,下标0开始,end代表结束位置 3 <option value=${i }>${i }</option> 4 </c:forEach> 5 </sel 阅读全文
posted @ 2020-04-18 09:29 可达鸭给我冲鸭 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 1、(先进入项目文件夹)通过命令 git init 把这个目录变成git可以管理的仓库 git init 2、把文件添加到版本库中,使用命令 git add .添加到暂存区里面去,不要忘记后面的小数点“.”,意为添加文件夹下的所有文件 git add . 3、用命令 git commit告诉Git, 阅读全文
posted @ 2020-04-18 09:25 可达鸭给我冲鸭 阅读(1365) 评论(0) 推荐(0) 编辑
摘要: function ellipsis(obj, num) { obj.each(function() { var maxwidth = num; if($(this).text().length > maxwidth) { $(this).text($(this).text().substring(0 阅读全文
posted @ 2020-04-17 18:00 可达鸭给我冲鸭 阅读(143) 评论(0) 推荐(0) 编辑
摘要: $(function() { $(window).scroll(function() {//实时监听顶部window的导航条 if ($(window).scrollTop() > 50) {//判断导航条距离顶部是否小于50px $(".Yc_BackTop").fadeIn(200);//导航条 阅读全文
posted @ 2020-04-17 17:58 可达鸭给我冲鸭 阅读(363) 评论(1) 推荐(0) 编辑
摘要: //通用函数 var Curren = { //获取地址栏后的指定参数 getQueryString: function(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.locat 阅读全文
posted @ 2020-04-17 17:54 可达鸭给我冲鸭 阅读(362) 评论(0) 推荐(0) 编辑