源码
<div class="gbox">
<div class="g-container">
<div class="g-resize"></div>
<div contenteditable="true" class="g-content"> Lorem ipsum dolor sit amet consectetur?</div>
</div>
</div>
<style>
.gbox{
position: relative;
width: 100%;
height: 400px;
background-color: antiquewhite;
overflow: hidden;
}
.g-container {
position: absolute;
display: inline-block;
}
.g-resize {
content: "";
position: relative;
width: 20px;
height: 20px;
border-radius: 50%;
background: none;
resize: both;
overflow: scroll;
z-index: 1;
scrollbar-width:none;
}
.g-resize::-webkit-scrollbar {
background:transparent;
background-color:transparent;
box-shadow:none;
border:none;
}
.g-resize::-webkit-resizer {
background-color: transparent;
}
.g-content {
position: absolute;
bottom: -160px;
right: -180px;
background-image: linear-gradient(160deg,rgb(255, 222, 30) 50%,rgb(255, 250, 80));
width: 200px;
height: 180px;
pointer-event: none;
text-align: center;
font-family: "marker felt", "comic sans ms", sans-serif;
font-size: 24px;
line-height: 1.3;
padding: 1em;
box-sizing: border-box;
}
.g-content:before {
content: "";
position: absolute;
width: 17px;
height: 17px;
top: 3px;
left: 3px;
background: #fff;
}
</style>