简体   繁体   中英

Does anyone know how to make a css button look like this?

enter image description here

I'm trying to make a button look like this in css but I can't figure out how. Someone please help me!

I haven't tried anything yet.

The picture is very blurry, but it should be something like this.

 *, *::before, *::after { box-sizing: border-box; margin: 0; padding:0; }.button { display: flex; flex-flow: row nowrap; justify-content: space-around; align-items: center; border: none; border-radius: .5rem; overflow: hidden; color: white; font-size: 1.3rem; }.button > * { padding: .5rem.8rem; }.tick { background: green; }.content { background: lightblue; }
 <button type="button" class="button"> <div class="tick">v</div> <div class="content">Start</div> </button>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM