我正在寻找一些帮助,我正在尝试修改此页面上按钮悬停状态的颜色以匹配输入悬停状态,以及获取我添加的新文本以正确的颜色显示。
https://quotes.lasik-eyes.co.uk/free-laser-eye-quotes-v2
我到目前为止编写了这段代码:
$('#webform-container').css('float','right');
$("<div id=list></div>").insertBefore( "#webform-container").css('float','left').width(500);
$( "<ol id='uList'></ol>" ).appendTo( "#list" );
var benefitList = ["Save hundreds of pounds", "It takes less than 2 minutes"];
for(i = 0; i < benefitList.length; i++) {
$("#uList").prepend("<li>" + benefitList[i] + "</li>")
}
$("#uList").css("text-align", "justify").css("text", "bold").css("color", "white").css("text-align", "justify").css("font-size", "35px").css('list-style-type', 'none');
$(".progressbar-text").text("Step 1 of 5");
$('em:contains("It only")').remove();
var newHTML = "@media only screen and (min-width: 768px) { .webformimage { background-image: url('http://www.scrubsandlabcoats.com/wp-content/uploads/2016/10/More-Expensive-Lab-Coats-624x284.jpg') !important } }"
$("body style:first-child").html(newHTML)
但是我花了3个多小时试图让文字颜色以实际白色显示,而我没有运气修改按钮的悬停状态颜色。