html - 文本转换样式不起作用

标签 html button text css

我试图让我的按钮内的文本全部大写,但出于某种原因,它没有采用我的 CSS 更改。在 Firefox 和 Chrome 中它仍然是正常的大写。

Here is the page.

这是 HTML:

<a href="http://www.eventbrite.com/e/ytb-boot-camp-weekend-tickets-11133581843?aff=es2&rank=0"><button>Click Here to Register</button></a>

这是 CSS:

button, .button {
    background-color: #f22f04;
    text-transform: uppercase !important;
}

p a button {
    text-transform: uppercase !important;
}

我做错了什么?看起来应该是一个简单的修复,但我想不通。

最佳答案

这是来自您的 style.css 的代码:

/* BUTTON STYLES */

button, .button {
    background-color: #f22f04;
}

在这里找到:http://ytbpulse.com/wp-content/themes/reverie-ytb/css/style.css

也许您的样式表没有在服务器上正确更新?

关于html - 文本转换样式不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24250650/

相关文章:

javascript - 我需要帮助来修复表单中的空白电子邮件

html - 使用图标作为切换按钮时如何正确考虑 WCAG 名称、状态、值和角色

Android逐字符显示文字动画

android - 在 Android 中添加输入约束来编辑文本?

html - 在我单击检查元素之前,图像不会在 Chrome 中显示

javascript - 仅控制多个电子邮件域的正则表达式

jQuery 按钮 : "like this"/"dislike this" - Hide all liked/hide all disliked

python - 如何在Python中的字符串列表中使用 ".endswith"?

html - 移动平台网站有水平滚动条,如何去掉?

WPF 按钮图标被镜像,为什么?