当前位置: 首页 > news >正文

VUE div的右上角的角标/标签

一、效果图

二、代码

<div class="comp-overview"><div class="overview-item" v-for="(item,index) in overviewInfoList" :key="index"><div class="angle_mark"><span>{{item.label}}</span></div><div class="home-chart-title"><span>{{item.title}}</span></div></div>
</div>
.overview-item {//父容器position: relative;display: inline-block;width: 32.6%;color: #7c979e;font-size: 16px;margin-right: 1%;margin-bottom: 18px;height: 206px;border-radius: 4px;background: #FFFFFF;border: 1px solid rgba(136, 136, 136, 0.1);padding: 20px 17px 0;// 角标.angle_mark {position: absolute;top: 0;right: 0;width: 58px;height: 25px;border-radius: 0 3px 0 4px;background: rgba(52, 117, 235, 0.1);// 角标文字span {position: absolute;display: inline-block;width: 100%;text-align: center;font-family: 思源黑体;font-size: 12px;font-weight: normal;line-height: 25px;color: #3475EB;}}
}

http://www.lryc.cn/news/383352.html

相关文章:

  • WPS复制后转置粘贴
  • Shell编程之正则表达式与文本处理器
  • linux文本粘贴格式错乱的问题
  • 第二节课 6月13日 ssh密钥登陆方式
  • 图书馆借阅表
  • 云动态摘要 2024-06-25
  • Docker编译nanopc-t4源码流程介绍
  • Redis八股文目录
  • Ext JS+Spring Boot 使用Ajax方式上传文件
  • windows桌面运维----第九天
  • 【Docker】安装和加速
  • 如何关闭win10音量调节时 左上角出现的黑框
  • 准确率(accuracy)、召回率(recall)的意义和区别
  • 分享5个卫星影像查看网站
  • 37岁,被裁员,失业三个月,被面试官嫌弃“太水”:就这也叫10年以上工作经验?
  • 如何选择一款优质的酱香酒?
  • SQL Server数据库安装
  • Hadoop 面试题(十)
  • Python网络安全项目开发实战,如何看清Web攻击
  • 持续总结中!2024年面试必问的操作系统面试题(三)
  • 请说明Thread类中run和start的区别,从方法的区别,及运行结果的区别分别说明
  • MySQL:概念、逻辑与物理结构设计详解
  • 《昇思 25 天学习打卡营第 6 天 | 函数式自动微分 》
  • 刷题——二叉树的中序遍历
  • 圈复杂度.
  • 分类预测 | Matlab实现GA-XGBoost遗传算法优化XGBoost的多特征分类预测
  • 说说 golang 中的接口和反射
  • 小程序注册
  • 工作记录2
  • linux挂载硬盘(解决linux不显示硬盘问题)