Home > Web Front-end > HTML Tutorial > How to set border and transparency styles for Div

How to set border and transparency styles for Div

php中世界最好的语言
Release: 2018-02-07 09:52:52
Original
5347 people have browsed it

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:颜色”
Copy after login



Transparency:

Style=”filter:alpha(opacity=50)” (50%的透明度)
Copy after login

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!

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