Problem occurs after setting border-radius and border together_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:56:35
Original
1887 people have browsed it

I wrote a mobile page and wrote border: 1px dashed #e2e2e2;border-radius:20px; I found that on some mobile phones, the rounded corners were applied to the border and not to the entire area. After removing border:1px dashed #e2e2e2, the rounded corners function normally. How to solve this?


Reply to the discussion (solution)

Please give me some advice. . .

Does anyone know the reason?

Maybe the background color and border are not on the same div. If the background is on that div, you need to add border-radius on that div
Watch the online demo.

It may be that the background color and border are not on the same div. If the background is on that div, you need to add border-radius to that div.
See the online demo.



My background is on the same div. In fact, it is normal in many browsers, but there is a problem on some mobile phones. . . Thanks for your answer.
source:php.cn
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