Home  >  Article  >  Web Front-end  >  Why Does Border-Radius Not Work on #screenQuery in Chrome?

Why Does Border-Radius Not Work on #screenQuery in Chrome?

DDD
DDDOriginal
2024-10-24 04:42:02791browse

Why Does Border-Radius Not Work on #screenQuery in Chrome?

Border-Radius Neglect on Webkit for #screen

Query

Users encounter an unexplained issue where the border-radius property on the #screen element ceases to exist when using Google Chrome, while browsers like Firefox or IE9 exhibit no such issue.

Solution

Despite applying all necessary browser prefixes and the standard border-radius syntax, the element fails to render with rounded corners. The culprit is a bug within Chrome's rendering engine. To resolve this, employ the following workaround:

<code class="css">.element-that-holds-pictures {
   perspective: 1px; /* any non-zero value will work */
}</code>

This non-intrusive fix preserves the display's integrity, unlike the opacity:0.99 workaround.

The above is the detailed content of Why Does Border-Radius Not Work on #screenQuery in Chrome?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn