html - 元素不选择类

标签 html css paypal

我根本不明白哪里出了问题。谁能帮我一下?我正在尝试自定义按钮,但它不会选择类。

<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/

相关文章:

PayPal webhook 没有收到任何事件

html - 格式化 HTML 表格以粘贴到 Google 文档中

javascript - 使用溢出自动设置 div 中绝对位置的高度

jquery - CSS Jquery - 事件链接

facebook - Paypal 是 Facebook 应用程序接受付款的常规方式吗?

paypal - Paypal 是否会发送用户/付款人的电话号码作为响应,如果是,我该如何获取?

javascript - 如何制作python脚本服务器端

html - XPath到标签附近的输入元素?

html - 带有 HTML/JS/CSS 等语法高亮的 Eclipse Indigo

css - 水平嵌套 LI 菜单