使用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>