Home > Web Front-end > HTML Tutorial > How to use bordercolor in CSS

How to use bordercolor in CSS

php中世界最好的语言
Release: 2017-11-22 15:25:19
Original
2517 people have browsed it

Many people are confused about how to use bordercolor with CSS, so today we will give you some popular science on how to use this attribute and under what circumstances it can be used

[Instance introduction

TableBorder color attribute bordercolor

By default, the border color is gray, you can use the bordercolor tag to set the border color. But the prerequisite for setting the border color is that the width value of the border cannot be zero, otherwise the color of the border cannot be displayed.

[Basic syntax]

[Syntax introduction]

Border The width value cannot be zero and the border color is a hexadecimal value of the color or an English color name.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>表格的边框颜色属性</title>
</head>
<body>
<table border="5"align="center"height="100"width="400"bordercolor="#CC0000">
  <tr>
    <td>单元格1</td>
    <td>单元格2</td>
  </tr>
  <tr>
    <td>单元格3</td>
    <td>单元格4</td>
  </tr>
</table>
</body>
</html>
Copy after login

This is the usage specification of bordercolor and a small case of using bordercolor. For more exciting content, please continue to pay attention to other updates on this site.

Related recommendations:

How to use label tags in html


DIV background image background Setting method


How to modify the HTML title tag element

The above is the detailed content of How to use bordercolor in CSS. For more information, please follow other related articles on the PHP Chinese website!

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