Transform:rotate displays a jagged solution encyclopedia on your phone

Source: Internet
Author: User

First a compatibility note, brainwashing:

Div
{
Transform:rotate (7DEG);
-ms-transform:rotate (7DEG); /* IE 9 */
-moz-transform:rotate (7DEG); /* Firefox */
-webkit-transform:rotate (7DEG); /* Safari and Chrome */
-o-transform:rotate (7DEG); /* Opera */
}

1. From the "Fantasy myth" of the blog:

With the CSS3 3D transforms, the GPU is used to render, effectively anti-aliasing effect. We simply add Translatez (0) to the CSS3 transform attribute. Example:-webkit-transform:rotate (5deg) translatez (0);

But using Safari under the ipad to open the Web page is still jagged, the author says.

Compatible: GPU acceleration was added at IE9

After my test, the ipad is no longer jagged, it should be a new version of Safari optimized this place

2. Blog from "whining":

The Overflow:hidden of the outer container can be solved by adding margin:-1px.
The solution will go wrong on the computer.
The new scheme Rotate3d + border:1px solid transparent; the problem is solved.
Originally scaling the picture is a bad thing, but the scale of the picture here is intentional, we choose the appropriate solution in the corresponding scenario use it, the original plan is not to be used on the Computer browser

For the picture I present view: For some unimportant picture, for example: some icon, logo and so on picture quality request not high picture uses 1:1, for the avatar, the product picture request quality is high, chooses 1:2 is good

Transform:rotate displays a jagged solution encyclopedia on your phone

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.