Code Thuộc tính border-left-color trong CSS
Code Thuộc tính border-left-color trong CSS
Code Thuộc tính border-left-color trong CSS
Tự code rồi chạy thử...
Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Code Thuộc tính border-left-color trong CSS</title>
<style>
*{-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
div{width:100%;float:left;height:auto;background:antiquewhite;margin-bottom:10px;padding:10px;border-left-width: 5px;border-left-style: solid;}
span {width:100%; float: left; heigt:auto; margin-bottom:10px}
</style>
</head>
<body>
<h1>Code Thuộc tính border-left-color trong CSS</h1>
<span>Dùng để quy định màu sắc đường viền trái của phần tử HTML, thuộc tính này kết hợp với thuộc tính border-left-style để quy định kiểu đường viền và thuộc tính border-left-width để quy định chiều rộng cho đường viền:</span>
<div style="border-left-color: red;">border-left-color: red;</div>
<div style="border-left-color: #0000FF;">border-left-color: #0000FF;</div>
<div style="border-left-color: rgb(201, 76, 76);">border-left-color: rgb(201, 76, 76);</div>
<div style="border-left-color: rgba(201, 76, 76, 0.3);">border-left-color: rgba(201, 76, 76, 0.3);</div>
<div style="border-left-color: hsl(89, 43%, 51%);">border-left-color: hsl(89, 43%, 51%);</div>
<div style="border-left-color: hsla(89, 43%, 51%, 0.3);">border-left-color: hsla(89, 43%, 51%, 0.3);</div>
<div style="border-left-color: transparent;">border-left-color: transparent;</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Code Thuộc tính border-left-color trong CSS</title>
<style>
*{-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
div{width:100%;float:left;height:auto;background:antiquewhite;margin-bottom:10px;padding:10px;border-left-width: 5px;border-left-style: solid;}
span {width:100%; float: left; heigt:auto; margin-bottom:10px}
</style>
</head>
<body>
<h1>Code Thuộc tính border-left-color trong CSS</h1>
<span>Dùng để quy định màu sắc đường viền trái của phần tử HTML, thuộc tính này kết hợp với thuộc tính border-left-style để quy định kiểu đường viền và thuộc tính border-left-width để quy định chiều rộng cho đường viền:</span>
<div style="border-left-color: red;">border-left-color: red;</div>
<div style="border-left-color: #0000FF;">border-left-color: #0000FF;</div>
<div style="border-left-color: rgb(201, 76, 76);">border-left-color: rgb(201, 76, 76);</div>
<div style="border-left-color: rgba(201, 76, 76, 0.3);">border-left-color: rgba(201, 76, 76, 0.3);</div>
<div style="border-left-color: hsl(89, 43%, 51%);">border-left-color: hsl(89, 43%, 51%);</div>
<div style="border-left-color: hsla(89, 43%, 51%, 0.3);">border-left-color: hsla(89, 43%, 51%, 0.3);</div>
<div style="border-left-color: transparent;">border-left-color: transparent;</div>
</body>
</html>
Code Thuộc tính border-left-color trong CSS nằm trong bài viết Thuộc tính border-left-color trong CSS