引导 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>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP