Php 使用html2canvas函数无法在画布中正确呈现HTML部分?

Php 使用html2canvas函数无法在画布中正确呈现HTML部分?,php,jquery,html,canvas,html2canvas,Php,Jquery,Html,Canvas,Html2canvas,首先,我通过下面的代码将方形图像转换为圆形 HTML <div id="output_image" style="float:right; margin-bottom:6px; margin-right:6px;"><img id="imgdis" class="type3" src="components/com_jumi/files/imagesupload/Chrysanthemum.jpg"></div> CSS .type3 { width

首先,我通过下面的代码将方形图像转换为圆形

HTML
<div id="output_image" style="float:right; margin-bottom:6px; margin-right:6px;"><img id="imgdis" class="type3" src="components/com_jumi/files/imagesupload/Chrysanthemum.jpg"></div>

CSS
.type3 {
    width: 187px;
    height: 187px;
    margin-top: 40px;
    margin-right: 46px;
    position: relative;
    border-radius: 93px;
    overflow: hidden;
}
HTML
CSS
.类型3{
宽度:187px;
高度:187px;
边缘顶端:40px;
右边距:46px;
位置:相对位置;
边界半径:93px;
溢出:隐藏;
}
图像大小格式更改成功。但当我在画布中渲染这些部分时,它不会渲染,它会显示方形图像,但我想显示圆形图像。 参见下面的示例


哪个版本的html2canvas?最新的,可能不是旧的。我正在使用HTML2CanvasV0.33jQuery。它是最新的吗?不,最新的是0.5.0,可以使用它的新版本js