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.
我正在这个网站上工作。问题是我试图添加padding-top到侧边栏但它不起作用。请帮忙。谢谢
padding-top
#sidebar{ width:300px; display:inline; padding-top:400px; }
填充不适用于inline元素 - 将其更改为inline-block
inline
inline-block