用CSS代码在网页上绘制漂亮的三角标记

2025-05-09 13:24:04

1、案例分析:我们要做三个三角形标志,一个是大的带字的,两个是小的,不同颜色的三角形。

用CSS代码在网页上绘制漂亮的三角标记

3、大的三角形代码如下:<section st鲻戟缒男yle="width:100%;margin:1em auto;text-align: c髫潋啜缅enter;" id="三角形标记" > <section class="xhr" style="width: 0px; height: 0px; border-left-width: 25px; border-left-style: solid; border-left-color: transparent; border-right-width: 25px; border-right-style: solid; border-right-color: transparent; border-bottom-width: 40px; border-bottom-style: solid; border-bottom-color: rgb(255, 100, 31); margin: 0px auto;"></section> <section>

用CSS代码在网页上绘制漂亮的三角标记

5、一个橙色的小角形代码如下:</section><section class="xhr" style="width: 0px; height: 0px; border-left-width: 15px; border-left-style: solid; border-left-color: transparent; border-right-width: 15px; border-right-style: solid; border-right-color: transparent; border-bottom-width: 20px; border-bottom-style: solid; border-bottom-color: rgb(255, 100, 31); margin: 0px auto;"></section>

用CSS代码在网页上绘制漂亮的三角标记
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢