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.
我在 div 中有一个无序列表。list-item-images 浮动在 div 之外,我该怎么办?http://www.brainmove.be/wordpress/recente-cases/上的示例
感谢您的帮助!
li { list-style-position: inside; }
首先设置边距:0;填充:0;在 ul 上;然后设置列表样式位置:内部;您可能想要浮动 ul ,这样它也不会跨越图像。