杰网资源 Design By www.escxy.com

先看看效果图:

Html+CSS绘制三角形图标

XML/HTML Code复制内容到剪贴板
  1. <!doctype html>  
  2. <html lang="en">  
  3. <head>  
  4.     <meta charset="UTF-8">  
  5.     <title>Document</title>  
  6.     <style type="text/css">  
  7.         #test1 {   
  8.             height:20px;   
  9.             width:20px;   
  10.             border-color:#FF9600 #3366ff #12ad2a #f0eb7a;   
  11.             border-style:solid;   
  12.             border-width:20px;   
  13.         }   
  14.         #test2 {   
  15.             height:0;   
  16.             width:0;   
  17.             overflow: hidden; /* 这里设置overflow, font-size, line-height */   
  18.             font-size: 0;     /*是因为, 虽然宽高度为0, 但在IE6下会具有默认的 */   
  19.             line-height: 0;  /* 字体大小和行高, 导致盒子呈现被撑开的长矩形 */   
  20.             border-color:#FF9600 #3366ff #12ad2a #f0eb7a;   
  21.             border-style:solid;   
  22.             border-width:20px;   
  23.         }   
  24.         #test3 {   
  25.             height:0;   
  26.             width:0;   
  27.             overflow: hidden;   
  28.             font-size: 0;   
  29.             line-height: 0;   
  30.             border-color:#FF9600 transparent transparent transparent;   
  31.             border-style:solid;   
  32.             border-width:20px;   
  33.         }   
  34.         #test4 {   
  35.             height:0;   
  36.             width:0;   
  37.             overflow: hidden;   
  38.             font-size: 0;   
  39.             line-height: 0;   
  40.             border-color:#FF9600 transparent transparent transparent;   
  41.             border-style:solid dashed dashed dashed;   
  42.             border-width:20px;   
  43.         }/*兼容IE6*/   
  44.         #test5 {   
  45.             height:0;   
  46.             width:0;   
  47.             overflow: hidden;   
  48.             font-size: 0;   
  49.             line-height: 0;   
  50.             border-color:#FF9600 #3366ff transparent transparent;   
  51.             border-style:solid solid dashed dashed;   
  52.             border-width:40px 40px 0 0 ;   
  53.         }   
  54.     </style>  
  55. </head>  
  56. <body>  
  57.     <div id="test1"></div><br>  
  58.     <div id="test2"></div><br>  
  59.     <div id="test3"></div><br>  
  60.     <div id="test4"></div><br>  
  61.     <div id="test5"></div><br>  
  62. </body>  
  63. </html>  
  64.   

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

标签:
Html,CSS,三角形

杰网资源 Design By www.escxy.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
杰网资源 Design By www.escxy.com

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。