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.
我希望 WordPress 侧边栏具有特定的高度,不等于帖子/页面的内容。例如,只有 400 像素。我正在与 atahualpa 合作。我必须破解哪个 PHP 代码?
如果我理解正确,您将想要编辑相关的 CSS 文件——仅此而已。
找出适合您要限制的容器的选择器并添加属性:
height: 400px; overflow: hidden;
或者overflow: auto;,如果您希望出现滚动条。
overflow: auto;
没有 php,在主题的 css 文件中执行。