0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【placeholderに色をるける方法】

Posted at

CSSの疑似要素::placeholderを使うと、やのプレースホルダーの色を変更することができる。

SCC>

.content::placeholder {
  color:red;
}
<HTML>

<form onsubmit = "Submit(event)" id="form"  name="formReset"> <!--//onsubmit="handleSubmit(event)"は定型文として覚えるeventをほかの名前にしちゃだめ名前にしちゃだめ -->
            <input type="text" name="contents"  class ="content" placeholder="名前を⼊⼒してください">
            <button type="submit" >送信</button>
        </form>

って書くとここのクラスのplaceholderだけ色がつく::placeholder {color:red;} とだけ書くと全部のplaceholderに色がついちゃう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?