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