In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use CSS3+DIV to achieve small triangle frame effect". In daily operation, I believe many people have doubts about how to use CSS3+DIV to achieve small triangle frame effect. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the question of "how to use CSS3+DIV to achieve small triangle frame effect". Next, please follow the editor to study!
The html code goes like this
The following uses CSS3 to realize the up, down, left and right triangles respectively
. arrow-up {
Width:0
Height:0
Border-left:30px solid transparent
Border-right:30px solid transparent
Border-bottom:30px solid # fff
}
. arrow-down {
Width:0
Height:0
Border-left:20px solid transparent
Border-right:20px solid transparent
Border-top:20px solid # 0066cc
}
. arrow-left {
Width:0
Height:0
Border-top:30px solid transparent
Border-bottom:30px solid transparent
Border-right:30px solid yellow
}
. arrow-right {
Width:0
Height:0
Border-top:50px solid transparent
Border-bottom: 50px solid transparent
Border-left: 50px solid green
}
Mini Program exampl
Wxml
You have chosen: upper brain
Characteristics: the cow upper brain is beef located at the back of the shoulder and neck, on both sides of the spine, the meat is tender and juicy, the fat is even, it has a good marbling, the taste is soft, it melts in the mouth, it is low in fat and high in protein, so it is suitable for hot pot rinsing and can be fried, fried and barbecue.
Wxss
.index _ sale_lists {
Margin: 50rpx 24rpx 0
Background-color: # F2F6F4
Border-radius: 20rpx
Position: relative
}
.sanjiao {
Position: absolute
Left: 50%
Top:-15rpx
Width:0
Height:0
Border-left:10px solid transparent
Border-right:10px solid transparent
Border-bottom:10px solid # F2F6F4
}
At this point, the study on "how to use CSS3+DIV to achieve small triangle border effect" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.