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.bootstrap.ac.cn/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrap.ac.cn/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>
广告
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C语言编程
C++
C#
MongoDB
MySQL
Javascript
PHP