Get the App
SLTechnology News&Howtos  ›  Development  › 

Google browser supports CSS scaling

Shulou Source: shulou.com Published: 2022-06-01 04:23:06 09月29日 Update

This article mainly introduces the Google browser to support CSS zoom method related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that after reading this Google browser to support CSS scaling method article will have a harvest, let's take a look at it.

You can use:

The code is as follows:

-webkit-text-size-adjust:none

However, support for this attribute has been removed since chrome 27.

Is there any other way we can solve this problem?

The resolution code is as follows:

-webkit-transform: scale (0.5)

Since the minimum support is 12px, zoom based on 12px

At the same time, you can use-webkit-transform-origin-x: 0; to solve the displacement problem of margin-left after scaling:

The code is as follows:

.test _ tag {

Font-size:12px

-webkit-transform-origin-x: 0

-webkit-transform: scale (0.5833333333333334)

}

The calculation method of scale value is: 7 / 12 = 0.5833333333333334

This is the end of the article on "Google browser supports CSS scaling". Thank you for reading! I believe you all have some knowledge of "Google browser supports CSS scaling". If you want to learn more, you are welcome to follow the industry information channel.

Tags: Support methods browsers browsing code knowledge content articles questions minimum value methods at the same time base points properties easy to operate articles easy to understand more read Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker Apple MySQL Redmi