코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>CSS Forms</title> <style> input { width: 100%; padding: 10px 20px; margin: 5px 0; box-sizing: border-box; border: none; background-color: #FFF8DC; color: olive; } </style> </head> <body> <h1>input 요소에 배경색 적용</h1> <form> 사용자 : <br> <input type="text" name="username"><br> 비밀번호 : <br> <input type="password" name="password"> </form> </body> </html>