遇到的问题:
input后面的图标点击事件为input的事件
解决问题:
<view class="top">
<input class="resarch" placeholder="输入文章标题" type="text" placeholder-style="font-size:30rpx;color:#000000;" ></input>
</view>
<view class="resarch_image" catchtap="test" hover-stop-propagation="false">
<image src='../../image/resarch.png' style="width:100%;height:100%;display:inline;"></image>
</view>
.resarch{
width: 95%;
height: 80%;
border: 1px solid #eee;
padding-left: 3%;
border-radius: 15px;
}
.resarch_image{
height: 65rpx;
width: 10%;
/* margin-left: 87%; */
right: 0;
margin-right: 3%;
margin-top: -90rpx;
position: absolute;
z-index: 5;重点:position与z-index不可缺一
}
解决成功!!!