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".
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; }
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; }
【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!