运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <style> .myform input { accent-color: pink; } </style> <body> <h1>The accent-color Property</h1> <form class="myform"> <p>Checkboxes:</p> <input type="checkbox" id="vehicle1" name="vehicle1" value="Bike" checked> <label for="vehicle1"> I have a bike</label><br> <input type="checkbox" id="vehicle2" name="vehicle2" value="Car" checked> <label for="vehicle2"> I have a car</label> <p>Radiobuttons:</p> <input type="radio" id="html" name="fav_language" value="HTML"> <label for="html">HTML</label><br> <input type="radio" id="css" name="fav_language" value="CSS" checked> <label for="css">CSS</label><br> <p>Range:</p> <label for="vol">Volume:</label> <input type="range" id="vol" name="vol" min="0" max="50"> </form> </body> </html>