有人知道为什么会出现这种情况吗?我已经花了2个小时,试图弄清楚为什么iPad上的光标会被移位。看看我的视频:
http://tinypic.com/r/20k6338/7
这是我的CSS:
#newroar-ipad {
position: fixed;
display: block;
opacity: 0;
left: 5px;
top: 0px;
height: 480px !important;
width: 550px !important;
margin-top: 30px;
pointer-events: none;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFFF), to(#CCCCCC));
z-index: 4;
-webkit-border-radius: 5px;
-webkit-box-shadow: 0px 4px 5px #000;
-webkit-transition: -opacity 0.0s ease-out;
-webkit-transition-duration: .4s;
-webkit-transform: translate(0px, -20px);
}
#newroar-ipad.show {
opacity: 1.0;
pointer-events: auto;
z-index: 4;
-webkit-transition-duration: .4s;
-webkit-transform: translate(0px, 15px);
}
#newroar-ipad-content-header {
margin-top: 10px;
z-index: 4;
width: 548px;
height: 55px;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EBEBEB), to(#CCC));
border: 1px solid #CCC;
}
#newroar-ipad-content {
margin-top: 0px;
margin-left: 2px;
background: none;
top: 0;
width: 542px;
height: 400px;
z-index: 4;
}
.newroar-inputfield {
-webkit-appearance: none;
height: 20px !important;
width: 90%;
margin-left: 18px;
margin-bottom: 10px;
background: #FFF;
color: #666;
font-size: 12px;
border-style: none;
padding: 10px;
-webkit-border-radius: 5px !important;
}
.newroar-textarea {
-webkit-appearance: none;
width: 90%;
height: 120px;
margin-left: 18px;
margin-bottom: 10px;
background: #FFF;
color: #666;
font-size: 12px;
border-style: none !important;
border: none !important;
padding: 10px;
-webkit-border-radius: 5px !important;
-webkit-box-shadow: none !important;
outline: none !important;
}
.newroar-selectfield {
font-size: 14px !important;
height: 30px !important;
width: 300px !important;
margin-left: 18px !important;
margin-top: 25px !important;
margin-bottom: 25px !important;
}
您可以看到,我已经尝试在CSS文档中使用!important,以防它会为其他表单元素带来样式,我还尝试了-webkit-appearance来查看是否可以解决问题...但都没有成功。 =(
感谢您可能提供的任何建议!