【发布时间】:2020-02-23 16:23:29
【问题描述】:
我创建了一个 div,该 div 有两个孩子一个是 ul,另一个是 div 我想滚动该内部 div 和字体的元素以修复 ul。我不能在内部div 周围添加任何其他div
代码
<div style="width: 200px; overflow-x: auto; ">
<ul>
<li>Some data</li>
<li>some more data </li>
</ul>
<div style="height: 70px; width: 500px">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
<img src="http://www.fiveriverstech.com/wp-content/themes/fiverivers/images/about_s.jpg">
</div>
</div>
【问题讨论】: