【发布时间】:2022-07-15 23:37:47
【问题描述】:
如何使用 CSS 重现这个形状?
如何移动右上角?
<span>Shift top-right corner</span>
<style>
span {
border: 4px dashed blue;
border-radius: 8px 0px 8px 0px;
padding: 6px;
font-size: 18px;
display: inline-block;
}
</style>
【问题讨论】:
-
你需要虚线边框吗?
-
是的,需要虚线边框。