2017年10月26日

select 如何改默认样式

摘要: select{appearance: none; -moz-appearance: none; -webkit-appearance: none; background: url("../images/down.png") no-repeat 95px center; }兼容 ie:select:: 阅读全文

posted @ 2017-10-26 18:51 小影子棒棒哒 阅读(289) 评论(0) 推荐(0)

如何改上传文件按钮样式

摘要: html:<p> <span> <span class="red">*</span>上传稿件</span> <a href="javascript:;" class="a-upload"> <input type="file" name="file" value="" id="file-input" 阅读全文

posted @ 2017-10-26 18:12 小影子棒棒哒 阅读(792) 评论(0) 推荐(0)

angular环境安装过程

摘要: 1,先去node.js官网,下载node.js并安装,这样电脑上就有了npm 2,进入DOS窗口,安装cnpm (全局安装) npm install -g cnpm --registry="https://registry.npm.taobao.org" 3,安装angular/cli(全局安装) 阅读全文

posted @ 2017-10-26 18:08 小影子棒棒哒 阅读(633) 评论(0) 推荐(0)

如何在网页上添加本地没有的字体

摘要: 先下载字体文件,在线转换需要的字体格式,使用和普通的font-family一样:font-family:"in"/*字体*/@font-face { font-family: 'in'; src: url('../fonts/neutraface2display-titling.eot'); src 阅读全文

posted @ 2017-10-26 17:58 小影子棒棒哒 阅读(702) 评论(0) 推荐(0)

切换效果封装

摘要: //切换function toggleFun(tab,content){ var $tab = $(tab); $tab.find("li").eq(0).addClass("active"); $tab.find("li").on("click",function(){ var index = $(this).index(); $(this)... 阅读全文

posted @ 2017-10-26 17:52 小影子棒棒哒 阅读(78) 评论(0) 推荐(0)

更改input type='file' 样式后,如何显示文件名

摘要: //上传文件var str;var text;var arr;$("input[type='file']").change(function(){ //$(".file-name").empty(); str=$(this).val(); arr=str.split('\\'); text=arr[ 阅读全文

posted @ 2017-10-26 17:50 小影子棒棒哒 阅读(1584) 评论(0) 推荐(0)

返回顶部效果

摘要: function pageScroll() { //把内容滚动指定的像素数(第一个参数是向右滚动的像素数,第二个参数是向下滚动的像素数) window.scrollBy(0, -100); //延时递归调用,模拟滚动向上效果 scrolldelay = setTimeout('pageScroll( 阅读全文

posted @ 2017-10-26 17:48 小影子棒棒哒 阅读(94) 评论(0) 推荐(0)

表单验证

摘要: $(".ins-con input,.register input").blur(function(){ $(this).closest(".d-row").find(".error").hide(); if($(this).is(".required")){ if(this.value==""){ 阅读全文

posted @ 2017-10-26 17:48 小影子棒棒哒 阅读(188) 评论(0) 推荐(0)

菜单在当前页面效果

摘要: $(".menu a").each(function () { if (window.location.href.indexOf($(this).attr("href"), 10) >=0 && $(this).attr("href") != "" && $(this).attr("href") ! 阅读全文

posted @ 2017-10-26 17:46 小影子棒棒哒 阅读(93) 评论(0) 推荐(0)

响应式使用rem,使用js设置字号js代码,750像素

摘要: var deviceWidth = document.documentElement.clientWidth;if(deviceWidth > 750) deviceWidth = 750;document.documentElement.style.fontSize = deviceWidth / 阅读全文

posted @ 2017-10-26 17:43 小影子棒棒哒 阅读(360) 评论(0) 推荐(0)

购物车选择和计算价格功能

摘要: 米 古船大米蟹稻共生 盘锦生态大米 5kg 规格:25Kg ... 阅读全文

posted @ 2017-10-26 17:35 小影子棒棒哒 阅读(1264) 评论(0) 推荐(0)

解决苹果手机不支持音乐自动播放

摘要: <audio id="music" class="media-audio" src="http://game.163.com/weixin/gfxm3_gc/images/bg.mp3" preload loop="loop"></audio ><img src="images/logo.png" 阅读全文

posted @ 2017-10-26 17:20 小影子棒棒哒 阅读(1213) 评论(0) 推荐(0)

导航