“Placeholder CSS” Kode Jawaban

Warna placeholder CSS

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: pink;
}
::-moz-placeholder { /* Firefox 19+ */
  color: pink;
}
:-ms-input-placeholder { /* IE 10+ */
  color: pink;
}
:-moz-placeholder { /* Firefox 18- */
  color: pink;
}
Drab Dragonfly

Placeholder CSS

::-webkit-input-placeholder {color: pink;} /* Chrome/Opera/Safari */
::-moz-placeholder { color: pink;} /* Firefox 19+ */
:-ms-input-placeholder { color: pink;} /* IE 10+ */
:-moz-placeholder {color: pink;}  /* Firefox 18- */
Himanshu Daudia

CSS Teks Placeholder

input {
  border: 1px solid black;
  padding: 3px;
  height: 300px;
}

input:placeholder-shown {
  border-color: teal;
  color: purple;
  font-style: italic;
}
Weary Wren

Input placeholder CSS

input::placeholder {
  color: red;
}
Morgane Keller

CSS Teks Placeholder

input {
  border: 1px solid black;
  padding: 3px;
  height: 20px;
}

input:placeholder-shown {
  border-color: teal;
  color: purple;
  font-style: italic;
}
Weary Wren

bagaimana margin teks placeholdr

input[type="text"]::placeholder {  
                  
                /* Firefox, Chrome, Opera */ 
                padding-left: 10px; 
            } 
/*Must include type="text" in HTML*/
OptimusRiemann

Jawaban yang mirip dengan “Placeholder CSS”

Pertanyaan yang mirip dengan “Placeholder CSS”

Lebih banyak jawaban terkait untuk “Placeholder CSS” di CSS

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya