前提
React.jsにて
家電をOn, Offにする
システムを作っています。
実現したいこと
まずはAPIなどは置いておいて
下記のようなデザインを実装しておきたいのですが
Timeタグで色々触ってみたのですが
なかなかうまく行きません。
理想通りの見た目にするにはどのようにしたらいいでしょうか?
該当のソースコード
React.js
1 2 <p>Set Start Time</p> 3 <input id="appt-time" type="time" name="appt-time"/> 4 <p>Set End Time</p> 5 <input id="appt-time" type="time" name="appt-time"/>
App.css
1input[type="time"]::-webkit-calendar-picker-indicator { 2 background: none; 3 background-color: #022055; 4} 5 6input[type="time"] { 7 background-color: #022055; 8 color: white; 9}
回答1件
あなたの回答
tips
プレビュー