用纯CSS3怎样制作常见的小的三角箭头
Admin 2022-07-09 群英技术资讯 1058 次浏览
这篇文章将为大家详细讲解有关“用纯CSS3怎样制作常见的小的三角箭头”的知识,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。用纯CSS3实现网页中常见的小箭头,实现代码如下所示:
/* css3三角形(向上 ▲) */
div.arrow-up {
width:0px;
height:0px;
border-left:5px solid transparent; /* 右透明 */
border-right:5px solid transparent; /*右透明 */
border-bottom:5px solid #2f2f2f; /* 定义底部颜色 */
font-size:0px;
line-height:0px;
}
/* css3三角形(向下 ▼) */
div.arrow-down {
width:0px;
height:0px;
border-left:5px solid transparent;
border-right:5px solid transparent;
border-top:5px solid #2f2f2f;
font-size:0px;
line-height:0px;
}
/* css3三角形(向左) */
div.arrow-left {
width:0px;
height:0px;
border-bottom:5px solid transparent; /* left arrow slant */
border-top:5px solid transparent; /* right arrow slant */
border-right:5px solid #2f2f2f; /* bottom, add background color here */
font-size:0px;
line-height:0px;
}
/* css3三角形(向右) */
div.arrow-rightright {
width:0px;
height:0px;
border-bottom:5px solid transparent; /* left arrow slant */
border-top:5px solid transparent; /* right arrow slant */
border-left:5px solid #2f2f2f; /* bottom, add background color here */
font-size:0px;
line-height:0px;
}
总结
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
这篇文章主要介绍了Html5页面点击遮罩层背景关闭遮罩层,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
css Flexbox布局的介绍:1、Flexbox是flexiblebox的简称,是CSS3引进的新布局模式。2、决定了要素如何在页面上排列,可以在不同的画面尺寸和设备下预测地表现出来。
这篇文章主要介绍了CSS3中的display:grid,网格布局介绍,需要的朋友可以参考下
css中文字在背景图片上的效果是怎样做的?很多朋友在做网页的时候,想要文字在背景图上方的效果,其实实现方法很简单,设置文字z-index属性高于图片就可以啦,接下来我们来看具体的实例。
css中clear属性的介绍:1、用于规定元素哪一侧不允许浮动元素,默认值为none,表示不清除,左右两侧允许浮动元素。2、确保当前元素的左右两侧没有浮动元素。clear只对元素本身的布局起作用。
成为群英会员,开启智能安全云计算之旅
立即注册关注或联系群英网络
7x24小时售前:400-678-4567
7x24小时售后:0668-2555666
24小时QQ客服
群英微信公众号
CNNIC域名投诉举报处理平台
服务电话:010-58813000
服务邮箱:service@cnnic.cn
投诉与建议:0668-2555555
Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 ICP核准(ICP备案)粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008