Bootstrap 4 .border-left-0类
使用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://cdn.staticfile.org/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>热门推荐
10 读书祝福语女生短句简短
11 感谢同事新婚祝福语简短
12 感谢教官文案祝福语简短
13 员工聚会蛋糕祝福语简短
14 元宵发客户祝福语简短
15 给团队信心祝福语简短
16 医美的祝福语大全简短
17 异国姻缘的祝福语简短
18 兄妹拍照祝福语简短的话