[英]CSS absolute positioning issue in IE and Firefox but not Chrome - Wordpress Template
I modified a WordPress responsive theme to include my client's logo within the header. 我修改了WordPress响应主题,以在标题中包含客户的徽标。 When adding this in, I've knocked around a bunch of other divs, and I'm slowly piecing it back together.
当添加它时,我敲了一些其他的div,然后慢慢地将其拼凑在一起。
The main challenge I'm having is with the 我面临的主要挑战是
#header-menu
ID ( http://ubcf2.garyspagnoli.com ) not rendering properly on certain browsers. ID( http://ubcf2.garyspagnoli.com )在某些浏览器上无法正确呈现。 It stays fixed to the right side, and no longer acts responsive to the design.
它保持固定在右侧,不再响应设计。
Here is the CSS I implemented (and also check out the site) to see how I positioned this over the logo image - 这是我实施的CSS(并查看该站点),以了解如何将其定位在徽标图像上-
#header-menu {
bottom: 0;
padding: 0;
position: absolute;
right: 0;
}
Any advice on how to fix this? 有关如何解决此问题的任何建议? Can I not absolute positioning in a responsive design?
我不能在响应式设计中绝对定位吗?
remove your h1#site-title
删除您的
h1#site-title
#header-menu{
background-image:url('http://ubcf2.garyspagnoli.com/wp-content/uploads/2014/02/UBCF-v1.jpg');
list-style-type:none;
margin:0px;
padding:0px;
}
#header-menu>li{
float:right;
}
#header-menu>li a{
display:block;
padding:10px 15px;
}
#header-menu>div{
float:clear;
}
add a div after your last list item. 在您的最后一个列表项之后添加一个div。 You may need to reverse your list items.
您可能需要反转列表项。 Also try and remove any unnecessary positionings.
另外,请尝试删除所有不必要的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.