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 */

  

猜你喜欢

转载自www.cnblogs.com/gxtfighting/p/12461355.html