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.
尝试计算页面元素的左侧和顶部。
元素需要定位在一条假想线上,从页面窗口的 0,0 到距该线开头 425 像素的点(大致)。
线的斜率为 -.375。
如何使用 php 计算左侧和顶部?
像这样的东西?
一般来说: