0

I've created a custom theme based on a template and for some reason the CSS drop down menu that appears on every other page when you hover of 'Services' doesn't seem to work on the wordpress page.

I copied and pasted the code I created into the Header.php file along with the same styles.

Anyone have any ideas?

The website can be fond here...

http://www.globalpurchasingsolutions.co.uk/blog/

It should work as it does here...

http://www.globalpurchasingsolutions.co.uk/testimonials.html

Any help on this matter would be very much appreciated.

Here's what the CSS Code Is Like

nav {
margin-top:20px;
text-align:left;
float:right;
margin-right:10px;
}

nav ul ul {
display: none;
}

nav ul li:hover > ul {
display: block;
}


nav ul {
background:#FFF;
color:#336699; 
list-style: none;
position: relative;
display: inline-table;
width:auto;
}


nav ul:after {
content: ""; 
clear: both; display: block;
}

nav ul li {
float: left;
}

nav ul li:hover {
border-bottom:solid 2px #336699;
}


nav ul li a {
display: block; 
padding: 15px 20px 15px 20px;
color: #2B66A2;
font-size:19px; 
text-decoration: none;
}
4

1 回答 1

1

我搞砸了 Firebug,无法解决这个问题。

您是否尝试过直接在 WordPress 主题中使用“master.css”而不是“header.css”和“style.css”?

有各种各样的事情正在发生,使用不同的样式表肯定会使现在和未来的事情变得复杂。

我只是尝试删除 header.css 和 style.css 并将其替换为带有 Firebug 的 master.css ......还有一些其他问题正在发生,但下拉菜单开始工作。

于 2013-07-30T01:48:34.000 回答