Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update android.md #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions issues/android.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
Andorid Issues
==============
<b><p>1. 三星I9100 (Android 4.0.4)不支持display:-webkit-flex这种写法的弹性布局,</p>
<p>但支持display:-webkit-box这种写法的布局, </p>
<p>相关的属性也要相应修改,如-webkit-box-pack: center;</p>
<p>移动端采用弹性布局时,建议直接写display:-webkit-box系列的布局</p>
</b>
<b><p>2. touchmove事件在Android部分机型(如LG Nexus 5 android4.4,小米2 android 4.1.1)上只会触发一次</p>
<p>解决方案是在触发函数里面加上e.preventDefault(); 记得将e也传进去。</p>
</b>
1. 三星I9100 (Android 4.0.4)不支持display:-webkit-flex这种写法的弹性布局.
但支持display:-webkit-box这种写法的布局,
相关的属性也要相应修改,如-webkit-box-pack: center;
移动端采用弹性布局时,建议直接写display:-webkit-box系列的布局

2. touchmove事件在Android部分机型(如LG Nexus 5 android4.4,小米2 android 4.1.1)上只会触发一次
解决方案是在触发函数里面加上e.preventDefault(); 记得将e也传进去。

3. HTC Desire HD A9191 (Android 2.3.5) display:table-cell 元素上设置 position:relative 不起作用,
解决办法是只在 display:block 元素上设置 position:relative

4. HTC Desire HD A9191 (Android 2.3.5) 为 display:none 元素通过添加 css class 设置的 display:block 无法起作用,解决办法是使用内联样式 `el.styls.display=‘block'`显示元素

5. HTC Desire HD A9191 (Android 2.3.5) 显示遮罩层后调用`window.scrollTo` 滚动到顶不起作用,解决办法是先调用 `scrollTo`方法,再显示遮罩层

![效果图](http://ww4.sinaimg.cn/thumbnail/6a53f589jw1ehcld89ikzj206o08wwf6.jpg)