input 에서 한글 입력 시 옆에 있던 버튼이 내려감

조회수 944회

일단이미지

위 사진처럼 영어를 입력할 때는 문제가 없는데 이미지 한글을 입력하면 왜 위 사진처럼 버튼이 내려가나요? 소스코드는 아래와 같습니다.

<html lang="ko">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>채팅</title>
  <style>
    html, body {
      padding: 0;
      margin: 0;
    }

    #chat {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 70px;
      background-color: #627fff;
      border-radius: 20px 20px 0px 0px / 20px 20px 0px 0px;
    }

    #chat form input {
      height: 60px;
      width: 90%;
      border-radius: 20px 0px 0px 20px / 20px 0px 0px 20px;
      border-style: none;
      margin-left: 10px;
      margin-top: 5px;
      font-size: 30px;
      outline: 0;
    }

    #chat form button {
      position: relative;
      height: 59.5px;
      width: 106px;
      border-radius: 0px 20px 20px 0px / 0px 20px 20px 0px;
      border-style: none;
      right: 6px;
      bottom: 4px;
      outline: 0;
    }
  </style>
</head>
<body>
  <div id="chat">
    <form action="">
      <input type="text">
      <button type="submit">입력</button>
    </form>
  </div>
</body>
</html>
  • (•́ ✖ •̀)
    알 수 없는 사용자
  • 이건 경험상 input에 line-height를 지정해 주면 해결되는 문제로 기억하고 있습니다. (마크업 손 놓은지 오래되서...) doodoji 2020.5.13 17:10

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)