neteasewd / html5bugs Goto Github PK
View Code? Open in Web Editor NEWfrontend bugs
Home Page: http://neteasewd.github.io/html5bugs/
frontend bugs
Home Page: http://neteasewd.github.io/html5bugs/
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" />
小屏幕会缩放固定宽度的元素来适应现实,在缩放过程中,比如华为手机会出现,文字段行的现象。因为图片缩放正常,于是给所有文字加背景色来hack
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 );
}
}
}
用这个属性设置
-webkit-tap-highlight-color
手触摸后 高亮颜色
页面中有input,texearea元素,在focus状态下,滚动页面,position:fixed的元素定位会错误,一般会跑到中间。blur状态,再滚动页面定位会正常(bug in ios7以及以下版本,安卓下正常)。
UI上看起来textarea有内阴影的情况 但是怎么设置box-shadow:none;都无法去掉
可以试试用-webkit-appearance: none;
可能原因:用了jqueryMobile.css 不确定
IE10+版本做transform动画,在时间为0的情况下,监听transitionend事件无法触发
时间设置为0.001s
transition-duration: 0.001s;
font-size的值不起作用
解决办法,在fontsize后面跟上height和line-height
在具体的容器里再重写掉
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.