为什么用了float: left;和overflow: hidden;没效果?

小程序 文章 2020-09-07 09:01 0 16 全屏看文

为什么用了float: left;和overflow: hidden;没效果?Why did I use float: left; and overflow: hidden; no effect?

为什么用了float: left;和overflow: hidden;没效果?
/* 轮播图 *//* 边距 */.swiper-box {  padding: 10rpx;  /* 边距 */}/* 高度 */.swiper-box swiper{  height: 340rpx;  /* 高度 */}/*图片页面占比*/.swiper-box swiper image {  width: 100%;  height: 100%;  /*图片页面占比*/}/*分类表*/.nav-box nav{  overflow: hidden;}.nav-boxna .vitem{  float: left;}

/*On the same day, the number of picture pages is: 100% in width, 100% in width, 100% in height, 100% in height, 100% in width, 100% in height, 100% in percentage of picture pages, and in classification table, NAV box NAV {overflow: overflow: hidden;} NAV box box Na {overflow: hidden;} nav-box Na, Na v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box Na, v-box na.v-box na.v-box na.v-box, at: left;}

回答:

Oliver:

所以你想要的效果是?

迷失的故渊:

哪个nav加个white-space:nowrap试一下

kenny#:

kenny#:新人求指教,弄了半天真的不懂错在哪里

-EOF-