html - CSS、HTML : What's the best way to add space to the inside of a scrollable element?

标签 html css layout space

水平和垂直?

我在一个 div 中使用 jquery ui 的可拖动功能,我需要一个大的内部区域来使用。

最佳答案

在可滚动元素上使用 padding,然后在子元素上使用 margin

关于html - CSS、HTML : What's the best way to add space to the inside of a scrollable element?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4245775/

相关文章:

php - 通过添加两个表单字段获取结束日期

css - 一行的多个表需要固定高度

html - 自定义形状表格

html - Bootstrap 字形图标在悬停时不改变颜色

python - 如果下拉列表为空而不显示,我如何从前端检查?

html - 如何在页面调整大小时保持 div 居中?

asp.net - 如何使用 JQuery + CSS 自动突出显示链接文本中的特定字符?

c++ - 水平布局尺寸

android - 在 onCreateView 中加载布局以自定义首选项

css - 如何调整背景图和标签图的高度?