Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set frame Line Color by css

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "css how to set frame color", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "css how to set frame color" this article.

Css set frame color method: 1, use border attribute, syntax "border: color value;"; 2, use border-color attribute, syntax "border-color: color value;". Color values can be defined using color names, hexadecimal values, RGB or RGBA, HSL, and so on.

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

Method 1: use the border attribute

Div {margin: 10px; border:solid # FFC0CB;} Test text

Effect picture:

Method 2:border-color attribute

The border-color property is used to set the color of the four borders.

Div {margin: 10px; border:solid; border-color: bisque;} Test text

Effect picture:

You can set color values in the following ways:

Name-specify a color name, such as "red"

HEX-specify a hexadecimal value, such as "# ff0000"

RGB-specify a RGB value, such as "rgb (255J. 0J. 0)"

HSL-specify a HSL value, such as "hsl (0,100%, 50%)"

Transparent

The above is all the content of the article "how to set frame Line Color in css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report