In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to share with you how to use css to draw triangles and arrows of the relevant knowledge, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you will learn something after reading this article, let's take a look at it.
Take a look at the following code first:
.box1 {width:0px;height:0px;border:50px solid red;} .box2 {width:0px;height:0px;border-width:50px;border-style:solid;border-color:red green blue yellow;}
Effect:
In the above effect, we see four triangles. How do we get a triangle? If three of the triangles are transparent, one triangle remains. The css code is as follows:
.box2 {width:0;height:0;border-width:20px;border-style:solid;border-color:red transparent transparent transparent;}
Effect:
If you get a triangle above, think about how to get a triangle in other directions. Where are the arrowheads? The code is attached below
Arrow {width:50px;height:50px;border-width:2px;border-style:solid;border-color:red red transparent transparent;transform:rotate (45deg);} these are all the contents of the article "how to draw triangles and arrows with css". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.