css画梯形,css画五角星, css画六角星 ,css画六边形

css画梯形

.triangle {

border-bottom: 100px solid #F36823;

border-left: 50px solid transparent;

border-right: 50px solid transparent;

height: 0px;

width: 100px;

}

css画五角星

.triangle{

margin: 50px 0;

position: relative;

display: block;

color: #F36823;

width: 0px;

height: 0px;

border-right: 100px solid transparent;

border-bottom: 70px solid #F36823;

border-left: 100px solid transparent;

-moz-transform: rotate(35deg);

-webkit-transform: rotate(35deg);

-ms-transform: rotate(35deg);

-o-transform: rotate(35deg);

}

.triangle:before {

border-bottom: 80px solid #F36823;

border-left: 30px solid transparent;

border-right: 30px solid transparent;

position: absolute;

height: 0;

width: 0;

top: -45px;

left: -65px;

display: block;

content: '';

-webkit-transform: rotate(-35deg);

-moz-transform: rotate(-35deg);

-ms-transform: rotate(-35deg);

-o-transform: rotate(-35deg);

}

.triangle:after {

position: absolute;

display: block;

color: #F36823;

top: 3px;

left: -105px;

width: 0px;

height: 0px;

border-right: 100px solid transparent;

border-bottom: 70px solid #F36823;

border-left: 100px solid transparent;

-webkit-transform: rotate(-70deg);

-moz-transform: rotate(-70deg);

-ms-transform: rotate(-70deg);

-o-transform: rotate(-70deg);

content: '';

}

css画六角星

.triangle{

width: 0;

height: 0;

border-left: 50px solid transparent;

border-right: 50px solid transparent;

border-bottom: 100px solid red;

position: relative;

}

.triangle:after{

width: 0;

height: 0;

border-left: 50px solid transparent;

border-right: 50px solid transparent;

border-top: 100px solid red;

position: absolute;

content: "";

top: 30px;

left: -50px;

}

css画六边形

.triangle{

width: 100px;

height: 55px;

background: #F36823;

position: relative;

}

.triangle:before {

content: "";

position: absolute;

top: -25px;

left: 0;

width: 0;

height: 0;

border-left: 50px solid transparent;

border-right: 50px solid transparent;

border-bottom: 25px solid #F36823;

}

.triangle:after {

content: "";

position: absolute;

bottom: -25px;

left: 0;

width: 0;

height: 0;

border-left: 50px solid transparent;

border-right: 50px solid transparent;

border-top: 25px solid #F36823;

}

html css画五角星,css画梯形,css画五角星, css画六角星 ,css画六边形相关推荐

  1. python绘制六角星_python画五角星和六角星程序 | 学步园

    1.五角星 import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turt ...

  2. python循环绘制六角星_python画五角星和六角星程序

    1.五角星 import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turt ...

  3. python绘制六角星_python画六角星,目前本人只想出这一种方法,有没有更直接的?~~...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 import turtle turtle.forward(100) turtle.right(120) turtle.forward(100) turtl ...

  4. python画五角星-python画五角星和六角星程序 | 学步园

    1.五角星 import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turt ...

  5. python五角星程序显示错误_python画五角星和六角星程序

    1.五角星 import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turt ...

  6. python画五角星和六角星程序_python画五角星和六角星程序

    1.五角星 import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turt ...

  7. python画五角星和六角星程序

    1.五角星 import turtleturtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtl ...

  8. python画五角星和六角星程序_python画五角星和六角星程序-阿里云开发者社区

    1.五角星 import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turt ...

  9. Python之OpenGL笔记(34):采用了顶点常量属性方法画多彩六角星

    一.目的 1.采用了顶点常量属性方法画多彩六角星: 二.程序运行结果 三.顶点常量属性    吴亚峰<OpenGL ES 3.x游戏开发>(上卷)内容    前面的很多案例中,给每一个顶点 ...

最新文章

  1. 如何查看指定端口.(win)
  2. Docker 修改运行中的容器端口映射
  3. Spark on K8S及history服务部署
  4. 深入浅出——网络模型中Inception的作用与结构全解析
  5. 8口PoE网口供电交换机适用环境介绍
  6. mysql内部实现原理面试_理解完这些基本上能解决面试中MySql的事务问题
  7. $(document).ready() 与 window.onload 的区别
  8. linux-5.12-rc1-dontuse
  9. influxdb 配置
  10. socket编程-阻塞和非阻塞
  11. 爬虫笔记9:session在突破12306图片验证中的作用
  12. 在线英英词典完整代码
  13. 教你如何使用Excel中的INT函数
  14. 几款任意波形发生卡推荐
  15. win10如何设置自己喜欢图片为桌面背景
  16. 树莓派TCP传输协议(socket通信) 一发一收与多发多收
  17. SSM框架实现数据库存储图片及读取图片
  18. 最流行的微服务应用框架有哪些
  19. Linux下VCS/IRUN的操作命令
  20. 【毕设参考】跌倒检测 ESP32+HaaS Python Motion API 快速打造上云的跌倒检测系统

热门文章

  1. Symbian 中文支持(模拟器)
  2. 关于“共识”算法以及比特币
  3. 电子采购快速发展的原因
  4. linux 文件夹图标,推荐 4 款漂亮的 Linux 图标主题
  5. 洛谷 P4269 [SHOI2015] 聚变反应炉 题解【贪心】【DP】
  6. 如何修改已释放的请求
  7. 精讲前端实战项目之移动端网易云首页(附源码)
  8. 谷雨了。且惜春光,且迎初夏。
  9. 开眼 | 盘点那些改变世界的代码
  10. bitblt简易使用教程