上一页 1 ··· 6 7 8 9 10 11 12 下一页
$('.toals,input[type=datetime]').on('focus',function(){ $('.footer-focus-none').css('display','none'); }); $('.toals,input[type=datetime]').on('blur', Read More
posted @ 2017-09-20 10:27 xzzzys Views(7238) Comments(0) Diggs(0) Edit
前提: 关于input框被浏览器软键盘遮挡住的问题,主要是安卓浏览器,下面出一个解决方案: 解决方案原理: 安卓浏览器在软键盘弹出后不会像ios浏览器那样重新计算window的高度,所以导致安卓浏览器window的高度在软键盘弹出的时候为“软键盘的高度+(window的高度-软键盘的高度)”;而其实 Read More
posted @ 2017-09-15 15:55 xzzzys Views(269) Comments(0) Diggs(0) Edit
1 用定位为题来解决var oHeight = $(document).height(); //浏览器当前的高度 $(window).resize(function(){ if($(document).height() < oHeight){ $("#footer").css("position", Read More
posted @ 2017-09-15 15:40 xzzzys Views(1278) Comments(0) Diggs(0) Edit
$('p.guidan-load1').click(function(){ $("p.guidan-load1").removeClass("guidan-load12"); $(this).addClass("guidan-load12"); var j=$(this).index(); // c Read More
posted @ 2017-09-11 14:58 xzzzys Views(131) Comments(1) Diggs(0) Edit
text-align:justify; text-justify:auto; display: inline-block; text-indent: 2em; font-size: 10px; Read More
posted @ 2017-09-11 14:56 xzzzys Views(326) Comments(0) Diggs(0) Edit
<input type="number" id="weight" name='weight' pattern="[0-9]*" class="input-footer-none" placeholder="请输入..."> //type=number可以实现 但是一般pattern="[0-9]*" Read More
posted @ 2017-09-10 10:49 xzzzys Views(518) Comments(0) Diggs(0) Edit
/** * 修改点击input输入框时的位置 *input框获取焦点footer隐藏,失去焦点时显示 */ $('.input-footer-none').on('focus',function(){ $('.footer-focus-none').css('display','none'); va Read More
posted @ 2017-09-10 10:44 xzzzys Views(299) Comments(0) Diggs(0) Edit
/** * 修改点击input输入框时的位置 */ $('.input-footer-none').on('focus',function(){ var _this=this; setTimeout(function(){ _this.scrollIntoView(); _this.scrollIn Read More
posted @ 2017-09-10 10:42 xzzzys Views(652) Comments(0) Diggs(0) Edit
//重置 $('.reset-bottom').click(function(){ $('.mui-input-clear').attr('value','');//text类型 $('input[name=sex]').removeAttr("checked");//radio类型 $('inpu Read More
posted @ 2017-09-10 10:38 xzzzys Views(174) Comments(0) Diggs(0) Edit
1.线性渐变:linear-gradient 语法:= linear-gradient([ [ | to [, ]+) = [left | right] || [top | bottom] = [ |]? 下述值用来表示渐变的方向,可以使用角度或者关键字来设置: : 用角度值指定渐变的方向(或角度) Read More
posted @ 2017-09-08 17:45 xzzzys Views(1640) Comments(0) Diggs(0) Edit
上一页 1 ··· 6 7 8 9 10 11 12 下一页