[element-ui] el-scrollbar 自适应高度,超出最大高度时出现滚动条

<div class="content">
	 <el-scrollbar style="width: 100%; height: 100%">
	    <ul>
	      <li v-for="(item, index) in arr" :key="index + 'pop'">
	        ...
	      </li>
	    </ul>
	  </el-scrollbar>
</div>
ul{
   
	height: 100%;
	max-height: 150px;
}

相关推荐

  1. echarts tree适应高度调整,加滚动

    2023-12-09 05:34:06       57 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-09 05:34:06       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-09 05:34:06       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-09 05:34:06       82 阅读
  4. Python语言-面向对象

    2023-12-09 05:34:06       91 阅读

热门阅读

  1. http和https区别

    2023-12-09 05:34:06       58 阅读
  2. TCP通讯

    TCP通讯

    2023-12-09 05:34:06      52 阅读
  3. Golang优雅实现按比例切分流量

    2023-12-09 05:34:06       55 阅读
  4. 数据库基础概念与范式反范式总结

    2023-12-09 05:34:06       53 阅读
  5. C++基础

    C++基础

    2023-12-09 05:34:06      43 阅读
  6. 初识主力投资者

    2023-12-09 05:34:06       54 阅读