Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use scale function in css

Shulou Source: shulou.com Published: 2022-06-03 10:53:55 10月04日 Update

This article mainly shows you "how to use the scale function in css", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use the scale function in css" this article.

1. Scale is used to modify the size of the element. Elements can be zoomed in or out by scaling values defined in vector form, and different scaling values can be set in different directions.

2. It is only suitable for the transformation on the two-dimensional plane. If you need to zoom in space, you must use scale3D.

Example

Div {transform: scale (2pr 4);-ms-transform: scale (2pr 4); / * IE 9 * /-webkit-transform: scale (2pr 4); / * Safari and Chrome * /-o-transform: scale (2pr 4); / * Opera * /-moz-transform: scale (2pr 4); / * Firefox * /} these are all the contents of the article "how to use scale functions in css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Function content article different element learning help can be passed at the same time vector size instance plane form direction easy to understand more organization knowledge space Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple macOS Shulou Tech Info NVidia MySQL