首页 > 其他分享 >CSS

CSS

时间:2023-11-30 15:57:51浏览次数:36  
标签:box webkit brandVo overflow CSS desc

1、文字超出用省略号...鼠标悬停显示全部文字

              <div
                style="font-size: 12px; margin-top: 30px; padding: 10px 20px; overflow: hidden; text-overflow: ellipsis; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; height: 64px;"
                :title="item.brandVo.desc"
              >
                {{ item.brandVo.desc }}
              </div>

  

标签:box,webkit,brandVo,overflow,CSS,desc
From: https://www.cnblogs.com/z360519549/p/17867522.html

相关文章

  • css三角形
    https://blog.csdn.net/weixin_43951592/article/details/127442235https://blog.csdn.net/m0_60237095/article/details/130076471 ......
  • 每日一练:css关键词:inherit、initial、revert、unset解释
    1、inherit(继承)inherit关键词用于将一个属性值设置为其父元素的相同属性值。它是一种实现样式继承的方式,使子元素继承父元素的样式属性。如果父元素没有明确定义该属性,子元素将继承到该属性的默认值。这个关键词通常用于处理文本属性,如文本颜色、字体等。<div><p>这是......
  • Why I see scss file in my chrome inspector?
    WhyIseescssfileinmychromeinspector?BecausetherearemapfilesinyourCSSfolderlike*.css.mapand*.scss.map.Itbasicallyreversemapstheglobal.csswhichisbeingusedbythebrowsertotheconstituent.scssfiles.Theyaretherebecause......
  • 关于CSS3的学习
    CSS的普通选择器:标签选择器、id选择器、类选择器、通用选择器(*)、分组选择器(将具有相同样式的元素放在一起,之间用","分隔)。注:类名和id名不能以数字开头。 rgba是rgb颜色的扩展,前三个值为三原色和rgb一致,第四个值是设置透明度的,1为完全不透明,0是完全透明为白色。hex颜色是用......
  • 记录一下vue如果全局引入scss变量
    开始首先一些普通的css,可以在App.vue中引入然后项目中会经常用到一些功能型的scss,比如mixin,和函数等,这个时候在main.js和app.vue是无效的。首先查看自己的sass和sass-loader版本,注意sass-loader的安装版本,如果是v8的版本使用prependDatea,以上的版本使用additionalData(翻......
  • css同时满足多个class写法
    css同时满足多个class的写法(取交集).el-menu-item.is-active{border-left:5px;border-color:#039EFD;border-right-style:solid;background-color:#D8F4FE;}css满足其中一个class的写法(取并集).el-menu-item,.is-active{border-left:5px;border-co......
  • CSS-position 定位
     1.介绍css定位属性允许对元素进行定位改变其在页面的位置。css有三种基本定位机制:普通流、浮动和绝对定位。普通流的元素的位置由元素在html中的位置决定。 2.定位属性设置偏移量:left、right、top、bottom(左、右、上、下)3.定位方式①静态定位(static):(很少用)......
  • 直播平台制作,css之如何清除浮动
    直播平台制作,css之如何清除浮动<styletype="text/css">  li{    list-style:none;    height:100px;    width:100px;    float:left;    background:red;    margin-left:20px;  }     .father:after,......
  • css选择
     类型选择器类型指h1,p,a这类h1{color:red;} 全局选择器以*开头  类选择器.highlight{background-color:yellow;}<h1class="highlight">Classselectors</h1>指向特定元素类span.highlight{background-color:yellow;}<p>Veggiesesbonusvobis,pr......
  • css基本
    css被称为样式语言本人理解html如是房子css即是装修p{color:red;  width:500px;  border:1pxsolidblack;} p整个结构称为规则p->为选择器选择多个元素p,h1{color:red;}<linkhref=pathrel=stylesheet/> paddingbordermarginbackground-......