CSS style-Rotate rotate

Source: Internet
Author: User

The general front end often used for example ' < ' such arrows, and then by the rotation of the direction, you can let the arrows up, down, and then one day I was using the span, the background is the UI provided by the arrow image, the dead and alive can not rotate, I will circle ...

Solve:

Change the span element directly into a block element, or set Inline-block or block for span. Allow span to be a block element.

Is the Chinese w3.org network above explanation, at first do not understand atomic inline-level element is a what, point link see is the introduction of the inline level box, always think that the atomic cascade element is inline inline element, But it is strange that the inline element is not effective. Later a variety of paste to know that the atom inline element refers to the Inline-block element ...

So the summary is: Transform for block-level elements and atomic inline elements that are inline-block

CSS style-Rotate rotate

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.