html - 如何在 WordPress 中使用自定义样式表

标签 html css wordpress hyperlink

我想将我的 WordPress 页面上的链接设置为白色。为此,我尝试将 css 代码包含到链接中,如下所示:

<a href="http://www.google.com" style="a:link{ color: white; }">Google</a>

这不起作用。我在 wp_admin 上看不到样式编辑或样式插入选项。 我如何获取样式表?

最佳答案

这是样式语法的问题,请更新代码:

<a href="http://www.google.com" style="color: white;">Google</a>

这将解决问题。

关于html - 如何在 WordPress 中使用自定义样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18144038/

相关文章:

php - 以编程方式将 'images' 和缩略图添加到 WordPress 帖子

javascript - 如何在 'onclick' 方法之前返回状态?

Javascript检测悬停是在元素的底部还是顶部填充

php - WooCommerce: header 中的迷你购物车似乎已缓存

wordpress - 激活我的设置插件时,我不断收到白页

CSS 跳过或跳过交替的 div 类 :nth-of-type or :nth-child

css - 两个方向的DIV紧凑排列

html - CSS 清除 :both not working for table cell with a background image?

html - 图像未使用 CSS 全屏显示

javascript - 具有与表单属性相同的名称属性的表单元素,隐藏/覆盖 native 表单属性。有解决方法吗?