文本字段在safari中不工作 [英] text field not working in safari
问题描述
我正在使用在线eBay利润预测计算器这里
I'm working on an online eBay profit forecasting calculator here
我可以似乎得到输入字段在safari和移动safari工作。他们在FF&铬。我点击进入他们,但没有显示,当我键入。我一直在搜索google,但似乎找不到任何线索。我想知道如果我在css中缺少一些东西。这里是我的css输入字段:
I can't seem to get the input fields to work in safari and mobile safari. They work fine in FF & Chrome. I click into them, but nothing shows when I type. I've been searching google but can't seem to find any clues. I'm wondering if I'm missing something in the css. Here's my css for the input fields:
input {
width: 155px;
padding-left: 5px;
height: 24px;
cursor: text;
font-size: 18px;
font-weight: bold;
border: none;
border-radius: 3px;
box-shadow: inset 1px 1px 2px black;
-moz-box-shadow: inset 1px 1px 2px black;
-webkit-box-shadow: inset 1px 1px 2px black;
background-color: #F8FBEF;
}
推荐答案
c $ c> calcstyle.css 这里:
Your problem lies in calcstyle.css
here:
* {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
我不完全确定为什么 :none;
会阻止您键入输入内容,但删除此块会为我修复此问题。
I'm not entirely sure why user-select: none;
would prevent you from typing into an input but removing this block fixes it for me.
编辑
以下是一种可能的解决方案:
Here is a possible solution:
选择所有您的输入...
Select everything but your inputs...
*:not(input.field) {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
这篇关于文本字段在safari中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!