What to do if css border is not displayed

藏色散人
Release: 2023-01-04 09:36:12
Original
7319 people have browsed it

The solution to the problem that the css border is not displayed: first open the corresponding code file; then find the code part where the border is not displayed; and finally reset the width or add "box-sizing".

What to do if css border is not displayed

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

css has written that the border display is incomplete or not displayed

div{
width: 100%;
border: solid 5px green;
}
Copy after login

At this time, it may be that the border display is incomplete and the upper, lower, left and right are not displayed, or the border is not displayed,

width: 100% border exceeds 100%,

Need to reset the width or add box-sizing.

Width 100% does not include margin, border and padding

Other reasons have not been discovered yet.

div{
width:97%;
border: solid 5px green;
}
Copy after login

【Recommended learning: css video tutorial

The above is the detailed content of What to do if css border is not displayed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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