给DIV限定宽度或高度,并指定overflow样式为auto,这样当内空超出后就会自动出现滚动条了.如
<div style="width:100px; height:100px; overflow:auto; border:1px solid #000000;"><img src="" style="width:300px; height:300px;"></div>
相关文章
- 如何在速度模板中的for循环内为div生成唯一的类名?
- 小的div在大的div中垂直居中
- DIV+CSS常用网页布局技巧!
- 通过 JS 判断页面是否有滚动条的简单方法
- Codeforces Round #198 (Div. 1) D. Iahub and Xors 二维树状数组*
- 【笔记】让DIV水平垂直居中的两种方法
- js实现可拖动Div
- javascript拖动div
- Educational Codeforces Round 143 (Rated for Div. 2) A-E
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1)&&Codeforces 861C Did you mean...【字符串枚举,暴力】