CSS breadcrumbs with clip-path - need of “negative” coordinates
问题 I'm trying to make a breadcrumbs path using clip-path . #clip span { padding: 3px 20px; background-color: #666; color: white; display: inline-block; clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 10% 50%); } <div id="clip"> <span>hello</span><span>tiny</span><span>world</span><span>welcome!</span> </div> which gives While I like the simplicity of that method, the problem comes from the coordinates 90% , which are relative to the length of the word. Thus "welcome!" does not have