Так что у меня этот код работает нормально все время, но не работает на iPad - PullRequest
0 голосов
/ 22 апреля 2020

Так что у меня этот код работает нормально все время, но он ломается на iPad, при вводе не отображаются поля ввода и нет сброса для автозаполнения / конкуренции, есть ли способ решить эту проблему?

ПОМОЩЬ БРАТЬЯ ДЛЯ ДОСТИЖЕНИЯ ВСЕХ ГРАДА И СЛАВЫ

Я не могу добавить больше деталей, но stackoverflow спрашивает меня тоже, все в значительной степени самоочевидно.

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

*, html, head, body {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  user-zoom: fixed;
  color: whitesmoke;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1;
  background: black;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

p {
  font-size: 1rem;
}

a {
  font-size: 1rem;
  text-decoration: none;
}

.container {
  margin: 0 11.75px;
  width: auto;
}

@media only screen and (min-width: 640px) {
  .container {
    margin: 0 auto;
    width: 616.5px;
  }
}

.vapp {
  padding: 10vh 0 2vh 0;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: whitesmoke;
  box-shadow: 0 0 0 100vh black inset;
  -webkit-box-shadow: 0 0 0 100vh black inset;
}

#h2lightblue {
  padding-top: 7px;
  color: lightblue;
}

.abs2ipdiv {
  position: absolute;
  margin: 7px 0 0 21px;
  padding: 0 7px;
  font-weight: 500;
}

.ipfields {
  width: 100%;
  padding: 15px 25px;
  margin: 15px 0 12.5px 0;
  border: 1px solid lightblue;
  border-radius: 20px;
  letter-spacing: 1px;
  outline: none;
  color: palevioletred;
}

.ipfields:hover, .ipfields:focus {
  border: 1px solid palevioletred;
}

#frgtpass {
  padding-right: 15px;
  float: right;
  font-size: 0.8rem;
}

#formsub {
  border: none;
  background: palevioletred;
  color: whitesmoke;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

#usertype {
  text-align: center;
}

#useractn {
  font-weight: 500;
  color: palevioletred;
}

.checkerr {
  text-align: center;
  font-size: 0.8rem;
  color: palevioletred;
}

#h2whitesmoke {
  text-align: center;
  color: whitesmoke;
}
<body>
    <div class="container vapp">
        <div>
            <h1>Welcome,</h1>
            <h2 id="h2lightblue">Log In to Continue!</h2>
        </div>

        <form action="login.inc.php" method="POST" autocomplete="off">
            <div>
                <label class="abs2ipdiv" for="usermail">Username/Email</label>
                <input class="ipfields" type="text" name="usermail">
            </div>
            <div>
                <label class="abs2ipdiv" for="pass">Password</label>
                <input class="ipfields" type="password" name="pass">
            </div>
            <input id="formsub" class="ipfields" type="submit" name="useraction" value="Log In">
        </form>

        <div>
            <p id="usertype">I'm a new user, <a id="useractn" href="signup.php">Sign Up!</a></p>
        </div>
    </div>
</body>
...