1、利用css层叠性,实现为div增加左右下边框
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* 合理利用层叠性有助于减少代码量:
例如:为一个div除了上边框,其余三个边都设置边框 */
div {
width: 200px;
height: 200px;
border:</