在编写html代码时,

有时候不想把控件撑大,滚动条就是个不错的选择

如下代码

<div style="height:auto !important;max-height:58px;overflow:scroll;overflow-x:hidden;">

主要是看红色代码部分,这就是让div控件生成滚动条的代码了,

其他的控件还没有测试过,overflow:hidden这个我们非常熟悉,

那么以后我们就有两个选择了

相关文章:

  • 2021-12-22
  • 2021-12-17
  • 2022-12-23
  • 2021-11-17
  • 2021-12-21
  • 2021-06-23
  • 2021-11-28
  • 2021-12-29
猜你喜欢
  • 2022-02-08
  • 2021-06-09
  • 2022-12-23
  • 2021-10-15
  • 2022-01-09
  • 2021-10-25
相关资源
相似解决方案