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.
我有一个网格视图。我想在单击某个项目时显示特定项目的 x 和 y 点。tnx。
呼叫getTop(),getLeft()在项目上。这应该返回y和x该项目相对于其父项。
getTop()
getLeft()
y
x