如图先完成一个按钮,在点击按钮时出现模态框
<!-- 模态框触发按钮 -->
<div class="btn">
<button id="open">click me</button>
</div>
.btn button {
background-color: dodgerblue;
border: 0 solid dodgerblue;
border-radius: 10%;
margin: 100px 0 0 100px;
height: 40px;
width: 80px;
}
模态框
<!-- 模态框内容 -->