How JavaScript hides border lines
This article mainly explains "how JavaScript hides the border". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how JavaScript hides borders".
The method of hiding the border: 1, use the "document.getElementById (" id ")" syntax to get the specified element node according to the id value; 2, use the "element node .style.borderColor =" transparent ";" statement to hide the border of the specified element node.
The operating environment of this tutorial: windows7 system, javascript1.8.5 version, Dell G3 computer.
How does JavaScript hide Border Lines
In JavaScript, you can hide the border by setting the color of the border to transparent (transparent).
Implementation code:
Div {padding: 10px; background-color: # FFC0CB; border: 2px solid black;} element content