掌握了圆角边框标签就可以做出类似百度搜索框的效果来
圆角边框-上
代码:
<!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{
width: 100px;
height: 200px;
background-color: yellowgreen;
margin:0 auto;
/* border-radius:10px 0px 0px 0px; */
/* border-radius:后跟px 和 %
把四个角用弧线连起来,或者说把角用弧线代替
弧线可以理解为圆角程度,值越大圆角程度越大
v1,v2 分别代表 左上右下