如何删除WordPress中链接的下划线?

我是wordpress主题开发的新手。我尝试了很好, 但是没有正确做。如何从链接中删除下划线。

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url')?>">
<h1 calss="vijay">
    <?php wp_loginout('www.google.co.in')?>
</h1>

css文件。

h1{
    color:red;
    text-decoration: none;
}.

#1


超链接由锚标记<a>控制, 因此你必须在CSS链接中使用a

 h1 a {
text-decoration: none;
}

你可以参考W3School


#2


我刚刚发现WordPress在其某些标签中添加了阴影框。

a {
  text-decoration: none !important;
  box-shadow: none !important;
}

#3


不是带有下划线的h1, 而是位于其下的标签。所以, 尝试

h1 a{
   text-decoration:none;
}

#4


a{
text-decoration: none;
}

复制此代码并复制到你的CSS文件中

来源:

https://www.srcmini02.com/66576.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_40418.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?