こちらでも他の回答者さんと同様に問題が再現しなかったので、一度以下の項目を確かめてみていただけませんか?
- キャッシュの消去を試す。
- 他のブラウザから見てみる。
- 呼び出すCSSのファイル名が間違っていないか。
- 全角文字が混じっていないか。
- 質問文以外の部分に閉じ括弧が抜けていたり、スペルミスが存在しないか。
- 以下のコードが正しく動作するか。
HTML
1<!DOCTYPE html>
2<html lang="ja">
3<head>
4 <meta charset="utf-8">
5 <title>タイトル</title>
6 <style type="text/css">
7 * {
8 margin: 0;
9 padding: 0;
10 }
11
12 .RegistForm input[type="text"] {
13 width: 456px;
14 height: 43px;
15 padding-left: 10px;
16 background-color: #1b6d85;
17 }
18
19 .form-group {
20 font-size: 30px;
21 }
22
23 @media only screen and (max-width: 480px) {
24 .RegistForm input[type="text"] {
25 width: 100%;
26 height: 43px;
27 padding-left: 10px;
28 background-color: #000;
29 }
30
31 .form-group {
32 font-size: 20px;
33 }
34 }
35 </style>
36</head>
37<body>
38<form class="RegistForm form-group">
39 <label>テキスト:
40 <input type="text">
41 </label>
42 <label>テキスト:
43 <input type="text">
44 </label>
45</form>
46</body>
47</html>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。