Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有 2 个 td 标记的表。第一个是 gridview,第二个 td 是有关从 gridview 中选择的项目的详细信息。我使用 Devexpress。如何使每个 td 都有自己的滚动条?
尝试像这样破解您的 HTML:
<td> <div style="width: 200px; height: 200px; overflow-y: scroll"></div> </td>
或者更好的是,在你的 CSS 中:
div.scrolling_div {width: 200px; height: 200px; overflow-y: scroll;}
然后,在您的 html 标记中...
<td> <div class="scrolling_div"></div> </td>