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.
我正在做一个 JavaScript 滑块来练习。
但是,滑块中的图片未居中。
这是链接:http ://eddieli.org/flee/
我在编码的哪一部分做错了?
图片未与滑块对齐...
感谢您的帮助。
好吧,我添加position: relative; left: -40px;到滑块的 li 中#container #left_col #slider li,它们对齐了,我不知道图像的大小,但是在做滑块本身之前,您必须始终检查起始位置,您必须检查所有样式是否合适。
position: relative; left: -40px;
#container #left_col #slider li