In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use CSS to achieve geometric chamfering. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
To achieve the effect of a corner being cut off, you can use a gradient, which accepts an angle as the direction, and allows the text to overflow and exceed the chamfer area (because it is just a background pattern), as follows:
Div {
Background: # 58a
Background: linear-gradient (- 45deg, transparent 15px, # 58a 0)
}
The effect is as follows:
Draw all kinds of geometric figures with CSS
The way to achieve two chamfering:
Div {
Width: 200px
Height: 100px
Background: # 58a
Background: linear-gradient (- 45deg, transparent 15px, # 58a 0)
Right, linear-gradient (45deg, transparent 15px, # 65a
0) left
Background-size: 50% 100%
Background-repeat: no-repeat
}
The effect is as follows:
Thank you for reading! On "how to use CSS to achieve geometric chamfering" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.