Home > Article > Web Front-end > How to set border and transparency styles for Div
This time I will show you how to set the border and transparency style of Div. What are the precautions for setting the border and transparency style of Div. Here is a practical case, let's take a look.
Border:
Style=”border-style:solid;border-width:5px;border-color:颜色”
Transparency:
Style=”filter:alpha(opacity=50)” (50%的透明度)
I believe you have mastered it after reading these cases For more exciting methods, please pay attention to other related articles on the php Chinese website!
Related reading:
How to redirect the connection in html
##What is the difference between html, xhtml and xml
How to use the meta viewport attribute of HTML
How to modify the default submission method of the form
The above is the detailed content of How to set border and transparency styles for Div. For more information, please follow other related articles on the PHP Chinese website!