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

DDD
Release: 2024-10-24 04:42:02
Original
790 people have browsed it

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>
Copy after login

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!

source:php
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!