今天要和大师分享的是:若何利用CSS3+HTML5画三角形,小编利用border边框来实现,实现的体例良多种!但愿可以或许给你的进修和工作带来帮忙!
实现代码:
width: 0; height: 0;
border-bottom: 100px solid orangered;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
实现代码:
width: 0;
height: 0;
border-top: 100px solid orangered;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
实现代码:
width: 0; height: 0;
border-right: 100px solid orangered;
border-top: 50px solid transparent;
border-bottom: 50px solid transparent;
实现代码:
width: 0; height: 0;
border-left: 100px solid orangered;
border-top: 50px solid transparent;
border-bottom: 50px solid transparent;
箭头左上
代码:
width: 0;
height: 0;
border: 50px solid orangered;
border-right: 50px solid transparent;
border-bottom: 50px solid transparent;
箭头右下
代码:
width: 0;
height: 0;
border: 50px solid orangered;
border-right: 50px solid transparent;
border-bottom: 50px solid transparent;
0 篇文章
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!