小编Rah*_*ari的帖子

如何使用Angular2在Nativescript中获取图像坐标

我有一个图像要显示在我的nativescript(使用Angular2)应用程序中,在此我想使图像的不同部分可点击。例如,一个人体图像,我只想知道用户单击了哪个部分。

有没有办法像html一样创建图像映射???

<CardView height="450" width="350" marginTop="10">
    <Image src="res://nerves" height="304" width="114" horizontalAlignment="center" verticalAlignment="center"></Image>
</CardView>
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

nativescript angular2-nativescript nativescript-angular

2
推荐指数
1
解决办法
465
查看次数