Wordpress菜单CSS样式问题

时间:2015-09-08 04:35:28

标签: html css wordpress

我已经开发了基本的html& css样式菜单,我现在正在尝试更改为wordpress菜单。这里的问题是高度波动。最小高度设置为50px,在codepen中它只扩展到55px高度,它将在wordpress版本扩展到65px高度。任何造型帮助吗? 55px高度仍然看起来不错,但65太多了

#main-nav{
background: #2c2c2c;
margin: 0 auto;
min-height: 50px;
border-bottom: 5px solid #cd2122;
z-index: 12;
}
#main-nav ul li {
text-transform: uppercase;
font-family: arial,Georgia, serif;
font-size:12px;
position: relative;
display: inline-block;
float: left;
border:1px solid #222222;
border-width:0 0 0 1px;
height:50px;
}
#main-nav ul li a {
display: inline-block;
height: 50px;
line-height: 50px;
color: #ddd;
padding:0 14px;
text-shadow:0 1px 1px #000;
border-left:1px solid #383838;
position: relative;}

http://codepen.io/reshogun/pen/rOVmrz

1 个答案:

答案 0 :(得分:0)

我检查了你给出的链接你在菜单样式中做了什么,这不仅仅是因为你使用的是WordPress,这是一些错过使用css代码的错误。以下是您必须进行的css更改和结帐,它正如您预期的那样正常工作

library(ggplot2)
library(ggthemes)
library(scales)

Date <- seq(as.Date("2010-01-01"), as.Date("2016-01-01"), by="months")
x1 <- c(6, 7, 5, 9, 13, 17, 10, 13, 19, 24, 23, 26, 23, 34, 37, 15, 13, 14, 16, 10, 14, 15, 17, 13, 34, 37, 15, 13, 14,
    16, 10, 14, 15, 17, 13, 13, 19, 24, 23, 26, 23, 34, 37, 15, 13, 14, 16, 16, 14, 15, 17, 13, 13, 19, 24, 23, 26, 23,
    34, 37, 15, 13, 14, 16, 16, 17, 18, 15, 7, 18, 14, 15, 17)
df = data.frame(Date, x1)


ggplot(df, aes(x=Date, y=x1)) + geom_line() +
scale_y_continuous(limits=c(5, 40), expand = c(0, 0)) +
scale_x_date(labels = date_format("%b. %y")) +
theme_bw() +  
theme(panel.grid.minor =   element_blank(),       
panel.grid.major.x =   element_blank(),
panel.grid.major.y =   element_line(colour = "black",size=0.5),
legend.position="bottom",
legend.title=element_blank(),
legend.direction="vertical",
legend.key= element_blank(),
axis.text.y=element_text(colour="#00669C", hjust = 0.5, vjust = 0.5),
axis.text.x=element_text(colour="black",  hjust = 0.5, vjust = 0.5))

由于 Sourabh