鼠标点击input控件没有反应。无法输入数据测试调试
发布于 5 年前 作者 minchang 17987 次浏览 来自 问答

在小程序程序编码时。感觉版本越升级体验越差。更重要的是:在电脑端开发时。编写代码时。鼠标点击input按钮时。控件没有光标。无法输入数据。。。

我一般里面只写这两个属性。在手机端输入数据没有问题。。。

问题1:点击没有反应

问题2:光标就闪了一下

问题3:我点击A控件。光标会跳到B控件里面去。。


我没有加任何事件。不知道是什么问题。。求解决。。不然项目都无法正常开发。

<input name=“GoodsName” placeholder=“请输入货物名称” />

2 回复

请提供下完整的代码看看

<view class=“bgccomment”>

<view class=“miancontent”>

<view class=“zhanghao”>

<text>输入真实姓名</text>

<input placeholder=""/>

</view>

<view class=“zhanghao”>

<text>输入手机号码</text>

<input placeholder="" />

</view>

<view class=“zhanghao yanzhengma”>

<text>输入验证码</text>

<input placeholder="" />

</view>

<button class=“send”>发送验证码</button>

<view class=“incard”>

<text>请上传手持身份证照</text>

</view>

</view>

<view class=“btncreated”>

<button>立即提交</button>

</view>

</view>


.bgccomment{

position: fixed;

}

.miancontent{

width: 100%;

padding: 20px 0;

position: relative;

}

.zhanghao {

width: 90%;

margin: 0px 5% 10px 5%;

background: #fff;

border-radius: 6px;

padding: 7px 15px;

overflow: hidden;

position: relative;

box-sizing: border-box;

}

.zhanghao input,.zhanghao text{

display: inline-block;

float: left;

}

.zhanghao text {

width: 36%;

margin-top: 4px;

color: #a4a0a5;

text-align: left;

}

.zhanghao .danwei{

display: inline;

width: auto;

}

.zhanghao input {

width: 59%;

}

.button{

background-color: #2196F3;

color: #fff;

text-align: center;

}

.choicebank {

padding: 13px 15px;

}

.choicebank  text{

margin-top: 0px;

}

.guanliansell text{

width: auto;

}

.duoxuan{

transform:scale(.7);

display: block;

float:right;

}

.beizhumodel{

color: #a4a0a5;

}

.headtitle{

width: 100%;

border-bottom:1px solid #bbbbbb;

padding: 5px 0 10px 0;

text-align: center;

font-size: 14px;

color: #a4a0a5;

}

.infolist>view{

width: 50%;

display: inline-block;

padding-top: 10px;

}

.infolist>view text{

width:auto;

margin:0;

}

.rightselect{

width: 20px;

height: 20px;

position: absolute;

right: 10px;

top:50%;

margin-top: -10px;

}

.yanzhengma{

width: 65%;

}

.send{

width:23%;

font-size:12px;

display:inline-block;

position:absolute;

right:5%;

bottom:150px;

height:36px;

line-height:36px;

padding:0;

background: #8bc34a;

color: #fff;

border-color: #8bc34a;

}

.incard{

margin: 0 5%;

background: #e5e5e5;

color: #717171;

border-radius: 6px;

height: 120px;

text-align: center;

line-height: 120px;

}

.btncreated{

margin: 0 5%;

}

.btncreated button{

background: #0f0f0f;

color: #fff;

}

回到顶部