GithubHelp home page GithubHelp logo

html5bugs's People

Contributors

leeluolee avatar ljgeneral avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

html5bugs's Issues

部分安卓机上 自适应的页面 也只显示一半的bug

meta标签里,如果initial-scale=1, maximum-scale=1 这两个不加
在coolpad(版本4.0+)、联想这种机子上 会有bug
没限定宽度的页面 也只会在屏幕左半部分显示

so:
meta标签最好要这样:<meta content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" name="viewport" />

带圆圈的指针图片rotate,部分机型会抖动,比如iPhone4

  • tags: -webkit-transform:rotate
  • platform:mobile
描述

在抽奖动画方案中,利用中间的指针部分(指针由针头和末尾的圆组成)做旋转达到抽奖效果。动画启动肉眼可发现指针在抖动。

解决方案

图片切成只有指针的针头部分,指针末尾的圆圈跟背景奖盘是一张整体的图片,肉眼看不出来抖动

相关代码
-webkit-transition: all 3s ease-in-out 0;
-webkit-transform:rotate(360deg);

xx

ios5下不支持bind函数

  • tags: border-raidus
  • browser: ios5, safari && webview

描述

ios5下safari 和 webview不支持bind函数

解决方案

手动添加一个shim

if(!Function.prototype.bind){
var slice = [].slice;
Function.prototype.bind = function(){
    var fn = this;
    var preArgs = slice.call( arguments, 1 );
    return function(){
      var args = preArgs.concat( slice.call( arguments ) );
      return fn.apply( context, args );
    }
}
}

input元素focus状态下,position:fixed元素出现定位错误

页面中有input,texearea元素,在focus状态下,滚动页面,position:fixed的元素定位会错误,一般会跑到中间。blur状态,再滚动页面定位会正常(bug in ios7以及以下版本,安卓下正常)。

暂时有两个办法:

IE10+版本transitionend无法触发

  • tags: transform:rotate
  • platform:desktop-IE10+
描述

IE10+版本做transform动画,在时间为0的情况下,监听transitionend事件无法触发

解决方案

时间设置为0.001s

相关代码
transition-duration: 0.001s;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.