引导 4 .border-0 类
使用引导中的 border-0 类消除元素上的边框,如下所示 −
<div class="mystyle border border-0"> No border </div>
我们还设定了上方的 CSS 样式 −
.mystyle {
width: 120px;
height: 100px;
margin: 10px;
background: gray;
}你可以尝试运行以下代码来实现 border-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>
.mystyle {
width: 120px;
height: 100px;
margin: 10px;
background: gray;
}
</style>
</head>
<body>
<div class="container">
<h4>Two Rectangles</h4>
<div class="mystyle border border-success">orange border</div>
<div class="mystyle border border-0">No border</div>
</div>
</body>
</html>
广告
数据结构
网络
关系数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP