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.
我有一个用于 CSS 精灵的背景图片
现在的问题是我只能使用流体布局(只有 %,没有 px)并且 % 定位在调整浏览器大小时会产生问题(例如,显示其他箭头的某些部分)
我该如何解决 ?我可以获得一个如何使用 % 定位作为背景的示例吗?
流畅的布局和使用固定的定位并不是相互排斥的。
如果页面上有一个不展开的元素,例如使用精灵背景的按钮,那么使用pxfor size 或 position 是合适的(可以说是强制性的)。
px