Loading...

改變input placeholder 字體顏色

Temperature: 0 °C

Mark ChangMark Chang
author_tools


改變input placeholder 字體顏色
通常我們會使用 placeholder 來作為欄位提醒文字~

通常 placeholder 字體顏色也都會是預設的灰色字。

這面臨到一個問題,我的 input 若要設定底色,絕對不能使用深色系....

這會是一個很令人討厭的結果。

所以,我們將要運用以下CSS來改變這個結果

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: #dbc403;
opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: #dbc403;
}

::-ms-input-placeholder { /* Microsoft Edge */
color: #dbc403;
}

以上紀錄~

參考Url link

https://innstory.com/story-改變input_placeholder_字體顏色-1819
CSS

Prev
 PHP_字串字數計算並隱藏

Next
Linux下查看版本號指令 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

fancybox close的方式

fancybox close...

parent.$.fancybox.close(); parent.jQuery.fancybox....

如何將mysql table auto_increment重設

如何將mysql table...

photo555 資料表裡的資料加加減減,一不小心突然驚覺當初的欄位長度設定的不夠⊙⊙ 當然,你可以...

想在網頁上預覽PDF可使用的方案

想在網頁上預覽PDF可使用的...

使用pdfobject.js #設定顯示位置 <div id="pdf"></d...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format