我根本不明白哪里出了问题。谁能帮我一下?我正在尝试自定义按钮,但它不会选择类。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="GAEUPE4GXM68E">
<input type="submit" value="Instant Buy" name="submit" title="PayPal – The safer, easier way to pay online." class="paypal-btn">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
.paypal_btn {
display: inline-block;
font-family: inherit;
font-size: 14px;
font-weight: bold;
color: #fff;
text-align: center;
padding: 10px 14px;
margin: 0;background: #ff6600;
border: 0;
cursor: pointer;
outline: none;
}
最佳答案
该类是“paypal-btn”(由破折号分隔),在您的 css 中放置“.paypal_btn”(由下划线分隔)
关于html - 元素不选择类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29375911/