text field not working in safari

后端 未结 2 1567
渐次进展
渐次进展 2020-12-09 07:39

I\'m working on an online eBay profit forecasting calculator here

I can\'t seem to get the input fields to work in safari and mobile safari. They work fine in FF &am

相关标签:
2条回答
  • 2020-12-09 08:17

    This still seems to be a problem with Safari 9.0.3 and iOS 9.2. What finally fixed it for me was to set it to text:

    input, textarea {
      -webkit-user-select: text;
      -khtml-user-select: text;
      -moz-user-select: text;
      -ms-user-select: text;
      user-select: text;
    }
    
    0 讨论(0)
  • 2020-12-09 08:30

    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;
    }
    

    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.


    EDIT

    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;
    }
    
    0 讨论(0)
提交回复
热议问题