第一种 css
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>background-size</title>
<style type="text/css">
.box1 {
width: 400px;
height: 200px;
overflow: hidden;
}
.box1::before {
float: left;
display: block;
width: 400px;
height: 400px;
border-radius: 100%;
box-sizing: border-box;
border: solid 10px blue;
content: " ";
}
.box1::after {
margin-top: 10px;
margin-left: 10px;
display: block;
width: 380px;
height: 380px;
border-radius: 100%;
box-sizing: border-box;
border: solid 10px yellow;
content: " ";
}
.box2 {
float: left;
margin-top: -180px;
margin-left: 20px;
width: 360px;
height: 180px;
overflow: hidden;