简体   繁体   English

如何将Facebook个人资料图片放入图片的坐标中?

[英]How to put facebook profile picture into a coordinates of a picture?

I have extracted the user's facebook profile photo. 我已经提取了用户的Facebook个人资料照片。

My question is: How is it possible that upon clicking a button, the user's facebook profile photo will be in the coords="4,25,33,54"? 我的问题是:单击按钮后,用户的Facebook个人资料照片怎么可能出现在coords =“ 4,25,33,54”中? How to echo the picture into this coordinates? 如何将图片回显到此坐标中?

Thank you all for the time and effort. 谢谢大家的时间和精力。

You could use CSS to clip the image when it's displayed. 您可以使用CSS 裁剪显示的图像。 The image has to be absolutely positioned to do that, and the bottom and right coordinates have to be computed, from the upper left corner of the image. 为此,必须绝对定位图像,并且必须从图像的左上角计算底部坐标和右侧坐标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM