移动端fixed元素中input文本框弹出虚拟键盘时样式错位(微信内置浏览器,qq浏览器)

摘要: 代码如下: $('input').bind("focus",function(){ $("div").css({"position":"absolute"}); }).bind("blur",function(){ $("div").css("position","fixed"); }); 注: i 阅读全文
posted @ 2017-11-23 16:57 wtt52800 阅读(865) 评论(0) 推荐(0)

Hbuilder编辑器 设置less即时编译环境

摘要: 之前一直用的纯css写样式表,习惯成自然,觉得less写起来反而比较麻烦,直到写移动端页面要用到rem单位进行计算时才知道less的好 处,但是less编译这块又有点让人为难了,作为菜鸟的我刚开始是使用的koala编译工具进行实时编译成css,但是这种比较麻烦,要一直 开着koala,随后才想到有没 阅读全文
posted @ 2017-11-22 10:36 wtt52800 阅读(1181) 评论(0) 推荐(0)

label标签加for与不加for属性的区别

摘要: w3c的标准用法 <form> <label for="male">Male</label> <input type="radio" name="sex" id="male" /> <br /> <label for="female">Female</label> <input type="radi 阅读全文
posted @ 2017-10-25 15:11 wtt52800 阅读(15751) 评论(2) 推荐(2)

css3常用的样式加前缀归类

摘要: 1:2d、3d转换需要加前缀 transform; 2d translate() rotate() scale() skew() matrix(); 3d: rotateX() rotateY() 2d: Internet Explorer 10、Firefox 以及 Opera 支持 transf 阅读全文
posted @ 2017-09-21 15:02 wtt52800 阅读(1230) 评论(0) 推荐(0)

wap页面meta标签及作用

摘要: 1:<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" name="viewport"> 适配不同的手机屏幕 2:<meta content="yes" name="apple-mobile-web-app-c 阅读全文
posted @ 2017-08-03 17:28 wtt52800 阅读(119) 评论(0) 推荐(0)

静态网页和动态网页

摘要: 一、静态网页HTML(超文本标记语言)格式的网页通常被称为“静态网页”。比如:以.htm和.html等形式为后缀的文件。那么静态网页又能做什么呢?静态网页中可以包含文本、图像、声音、FLASH动画、客户端脚本。二、动态网页所谓的动态网页,是指跟静态网页相对的一种网页编程技术。可以简单的理解是以·as... 阅读全文
posted @ 2015-11-04 10:26 wtt52800 阅读(255) 评论(0) 推荐(0)