li.downloadApp:hover::after { content: ''; border: 8px solid white; position: absolute; top: 33px; margin: auto; left: 0; right: 0; width: 0; border-t ...
转载 2021-08-23 08:02:00
841阅读
2评论
display: inline-block; border-right: 2px solid #E4E4E4; border-bottom: 2px solid #E4E4E4; width: 10px; height: 10px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg);
CSS
原创 2022-01-16 11:03:27
1898阅读
display: inline-block; border-right: 2px solid #E4E4E4; border-bottom: 2px solid #E4E4E4; width: 10px; height: 10px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg);
原创 2021-09-03 15:25:41
1566阅读
用纯css三角形
转载 10月前
122阅读
三角形:height:0;width:0;border:6pxsolidtransparent;border-left:6pxsolid#f00;display:block;
原创 2020-06-04 17:47:33
609阅读
riangle&l
原创 2022-11-19 05:36:07
122阅读
代码:<!DOCTYPE html><html><head><meta charset="utf-8"> <title>html css三角形</title> <style> div{width: 0;height: 0;border-style: solid;borde
原创 2022-06-17 21:05:03
511阅读
使用 border 【解释】不设置宽高,用边框大小控制三角型大小【分解步骤】设置一个div不设宽高【示例】<style> #triangle{ width: 0; height: 0; border: 100px solid; border-color: orangered skyblue gold ye
原创 1月前
35阅读
把div的高宽都设置为0;利用border来实现纯css三角形要是倒三角,则有border-top没有botton 左右border都不要;如width: 0; height: 0; border-width: 7px; border-style: solid; border-color: transparent; border-top-color: #fff;(但是在css6下会有黑色背景,其
原创 2013-11-15 10:34:56
895阅读
在实际编程中我们经常会遇到下拉菜单的下三角和一些特殊的图形,那么这些如何用css来实现呢? 例1 例2 例3 原理: 仔细想想,原理非常简单,利用CSS的border以及它的属性值transparent来实现三角形,其中最主要的是要明白由于div的高度跟宽度都为0,margin,padding也为0 ...
转载 2021-09-22 17:31:00
182阅读
2评论
[html]无标题文档然后,将它四个边框中的个边框设为透明,剩下一个设为可见,就可以生成三角形效果:两种三角搭配,可组成多种箭头[/html]
转载 2013-05-03 11:16:00
285阅读
2评论
code path: http://jsrun.net/5baKp/edit<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial...
原创 2022-09-01 15:36:00
148阅读
div {    width: 0;    height: 0;    border-width: 0 40px 40px;    border-style: solid
原创 2022-10-21 09:08:29
303阅读
3评论
1,上三角
原创 2022-04-19 16:33:32
310阅读
code path:
原创 2022-03-04 10:35:28
219阅读
1.不同理解的边框<div class="border"></div>.border { width: 50px; height: 50px; border: 2px solid; border-color: #9
原创 2022-12-21 10:15:29
252阅读
一次开发中遇到,记录代码原理:1.给一个div,宽和高都为0的时候,盒子什么都没有看起来。为空白2.给一个宽高为0的盒子给一遍像素给100px的上边,下边和右边,border-top: 90px solid red;border-right: 100px solid black;border-bottom: 100px solid blue;这样左边没有,就会缩成一
原创 2021-11-19 10:42:59
1116阅读
话不多说,下面介绍两种比较常用的写法:一、border边框宽和高都设置为0px,通过border的交点创建三角形,这应该是使用的最多的一种写法。.triangle{ width: 0; height: 0; border: 100px solid; border-color: red green blue orange; } 效果图如下:好了,四个小三角已经初见雏形了,只需要稍做
三角形属于常见的几何图形,在网页设计中应用较为广泛。在网页编程中除了采用图片来实现前端展现外,纯CSS也可以实现三角形绘制。 1、基于border-width方案 基于border-width绘制三角形是“一门传统手艺”,由于该属性浏览器的支持性非常好,几乎没有兼容性问题,主流的三角形绘制方案都是采用基于border-width属性来实现的。
  • 1
  • 2
  • 3
  • 4
  • 5