0

我只需要在我的联系页面border-top: 1px solid #202020;上删除from ,并在所有其他情况下保持原样。这可能吗?如果是这样,我该如何进行这些更改?.contact.contact

谢谢你。

4

4 回答 4

3

给那个页面的正文一个特殊的类,比如

<body class="contact-page">

然后在你的CSS

body.contact-page .contact{
    border-top:0;
}
于 2012-06-20T20:04:46.867 回答
1

将此行添加到您的http://frshstudio.com/wp-content/themes/frsh/style.css文件中:

.contact_contact{border-top: none;}

和你的html:

<div class="contact contact_contact">
  <p>
    <span>Let's Chat</span>
  </p>
</div>
于 2012-06-20T20:14:07.767 回答
1

您可以将类添加到正文或其他包装标记,例如<body class="contacts-page">

然后使用下面的 CSS.contacts-page .contact { border-top: none }

于 2012-06-20T20:05:48.483 回答
0

您始终可以使用内联 css 覆盖样式表 css。所以像所有其他人建议的那样,把 .contact { border-top: none; 但这样做

<head>
      <style>
       .contact { border-top: none; }
      </style>
</head>

这只会禁用页面上的边框,而所有其他页面都将遵循样式表。

于 2012-06-20T20:23:39.090 回答