
移动端
fb_01
思想践行者
展开
-
移动端input框输入文本时不居中。。。
1、原因:因为有元素有line-height属性 2、解决方法:去掉line-height属性 3、注:要写ie的兼容性line-height:30px\9;原创 2015-12-19 14:09:45 · 3609 阅读 · 0 评论 -
Android移动端input标签type=submit时,点击时会光标会进入按钮。。。
1、原因:input有一个私有属性user-modify:read-write-plaintext-only; 2、解决方法:重写user-modify属性或者 input[type="submit"]{ -webkit-user-modify: read-plaintext-only; -moz-user-modify: read-plaintext-only;原创 2015-12-19 13:52:13 · 2047 阅读 · 0 评论 -
移动端点击事件出现背景框以及pc端a标签点击时出现背景框???
1、原因:移动端事件响应时会有默认的背景框颜色,a标签active时也有默认的背景框颜色。 2、解决方法:移动端让背景框不显示 -webkit-tap-highlight-color:rgba(0,0,0,0); -moz-tap-highlight-color:rgba(0,0,0,0); -ms-tap-highlight-color:rgba(0,0,0,0); -o-t原创 2015-12-18 16:31:16 · 9155 阅读 · 0 评论