简体   繁体   English

没有将CSS样式应用于我的论坛,任何人都不知道为什么?

[英]CSS styles aren't being applied to my forum any one have any idea as to why?

BBPress Styles are not being styled http://www.designobvio.us/smartklubben/forums BBPress样式未设置样式http://www.designobvio.us/smartklubben/forums

The forums i'm using are called buddypress. 我正在使用的论坛称为buddypress。 They have their own style sheets but I think something in my style sheet is blocking it from being used 他们有自己的样式表,但我认为样式表中的某些内容阻止了它的使用

My Style sheet http://designobvio.us/smartklubben/wp-content/themes/SchoolManagementClub/css/style.css 我的样式表http://designobvio.us/smartklubben/wp-content/themes/SchoolManagementClub/css/style.css

Style sheet from bbpress http://designobvio.us/smartklubben/wp-content/themes/SchoolManagementClub/css/bbpress.css?ver=20110921 bbpress的样式表http://designobvio.us/smartklubben/wp-content/themes/SchoolManagementClub/css/bbpress.css?ver=20110921

Thank you guys so much. 谢谢你们

看来您需要将内容包装在具有ID content的元素中

Are your styles supposed to override the buddypress styles? 您的样式是否应该覆盖伙伴样式? If so you need to include your stylesheet after the buddypress stylesheet. 如果是这样,则需要在buddypress样式表之后包括样式表。 According to your source you are including the buddypress styles after your own styles. 根据您的消息来源,您将在您自己的样式之后包括buddypress样式。

The styles in the stylesheet loaded last will get the precedence over matching styles loaded in previous stylesheets. 最后加载的样式表中的样式将优先于先前样式表中加载的匹配样式。

如果要覆盖它,请从代码中删除bbpress css。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM