微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

flex布局max-wdith失效引发的思考

结构如图

样式如下

```css

.productIntro
  position absolute
  left 32upx
  bottom 120upx
  color #fff
.intro
  display flex
  align-items center
  max-width 438upx;
  height 69upx;
  background rgba(0,0,0,.3)
  border-radius 10upx;
  padding 0 21upx
  Box-sizing border-Box
.pic
  width 46upx
  height 46upx
.text
  margin-left 21upx
  max-width 400upx
  text-overflow ellipsis
  white-space Nowrap
  overflow hidden
  font-size 29upx
.title
  margin-top 30upx
  width 520upx
  overflow hidden
  display -webkit-Box !important
  text-overflow ellipsis
  -webkit-line-clamp 3
  /* autoprefixer: off */
  -webkit-Box-orient vertical
  /* autoprefixer: on */



  

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐