Eli*_*lka 22
目前缺乏本机支持的解决方案,因为规范没有明确定义这些属性,而是将其留给浏览器实现.
但是,您可以使用SVG创建边框,因为它可以完全控制您所追求的特性.
画一条线,而不是定义它stroke-dasharray和stroke-linecap属性以达到预期的效果.
<line
x1="40" x2="260"
y1="100" y2="100"
stroke="#5184AF"
stroke-width="20"
stroke-linecap="round"
stroke-dasharray=".001, 30" />
Run Code Online (Sandbox Code Playgroud)
