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.
jQuery 选项卡在我加载的内容的左侧添加了大约 25px 的边距。这似乎是一种默认行为,因为我页面上的空间看起来类似于 ui 示例站点上的空间。关于如何在不破坏任何东西的情况下在 jQuery-ui 样式表中进行调整的任何想法?
填充来自这个规则:.ui-tabs .ui-tabs-panel,它的默认值是padding: 1em 1.4em;. 您可以直接在 jQuery UI CSS 文件中更改它,也可以在您自己的 CSS 文件中覆盖它。
.ui-tabs .ui-tabs-panel
padding: 1em 1.4em;
由于该样式直接应用于选项卡面板本身,因此不应破坏其他任何内容。