Bootstrap 4 .border-left-0 class
bootstrapweb developmentcss framework更新于 2024/1/19 1:48:17
使用 border-left-0 类移除元素的左边框。
使用 <div> 内的类移除 <div> 的左边框。 −
<div class="one border border-left-0"> Removing left border </div>
在 <div> 类中也设置了 “one” 类来设置其样式 −
<style>
.one {
width: 220px;
height: 220px;
margin: 50px;
}
</style>
您可以尝试运行以下代码来使用 border-left-0 类 −
示例
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<style>
.one {
width: 220px;
height: 220px;
margin: 50px;
}
</style>
</head>
<body>
<div class="container">
<p>Bootstrap 4</p>
<div class="one border border-left-0">Removing left border</div>
</div>
</body>
</html>

