Image Blur problem when Android comes with browser position:fixed

Source: Internet
Author: User

Recently encountered a problem: to a div to do position:fixed, div in the picture in the Xiaomi 1s browser inside the picture is blurred, and other browser pictures are clear (note: It is already twice times the picture). The code is as follows:

<Divclass= "Position:fixed">
<imgsrc= "XXX">

</ Div >

as long as the posiiton:fixed is removed, the picture is clear. After one side of the row and Google, to determine that the problem is Andorid browser bug, position:fixed at the same time when the image zoom processing will occur when this problem.
Solution Solutions
  • Abandon the use of position:fixed implementation "is expected to be more difficult."
  • Do not scale the picture "more difficult"
  • Add the following CSS style to the picture:
  • img {
    -webkit-transform
    : Scale (1) rotate (0) translate3d (0,0,0);
    Transform
    : Scale (1) rotate (0) translate3d (0,0,0);
    } 
article sync link

Image Blur problem when Android comes with browser position:fixed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.