Home > Backend Development > PHP Tutorial > WeChat Development - How to turn the user avatar obtained by php WeChat into a circle?

WeChat Development - How to turn the user avatar obtained by php WeChat into a circle?

WBOY
Release: 2016-09-24 09:15:12
Original
1779 people have browsed it

If you want to paste the obtained user avatar information on the poster as a watermark, instead of displaying it directly, you need to save the avatar first and then crop it into a circle and add it to the poster to generate a new picture
The obtained avatar is a square , how to turn it into a circle?

Reply content:

If you want to paste the obtained user avatar information on the poster as a watermark, instead of displaying it directly, you need to save the avatar first and then crop it into a circle and add it to the poster to generate a new picture
The obtained avatar is a square , how to turn it into a circle?

Use border-radius

I agree with the point above. For example, if you use IE8 to open site B, your avatar will be square because IE8 does not support the radius-border attribute

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template