简体   繁体   English

Wordpress CSS侧边栏代码问题

[英]Wordpress CSS Sidebar code issue

Here is the issue. 这是问题。 if you look at the screen shot below. 如果您看下面的屏幕截图。 The border of "Live gaming from tekgoblin" is bleeding into the ad code above the border. “来自tekgoblin的实时游戏”的边界正渗入边界上方的广告代码中。 I am not sure why as it only happens with that part. 我不确定为什么只发生在那部分。 I have tried and tried to fix this and am looking for others input. 我已经尝试并尝试解决此问题,并正在寻找其他输入。 Looks fine in IE but not FFox or Chrome. 在IE中看起来不错,但在FFox或Chrome中效果不佳。

http://www.tekgoblin.com/wp-content/uploads/Screen-Shot-2012-09-28-at-2.59.18-AM.png http://www.tekgoblin.com/wp-content/uploads/Screen-Shot-2012-09-28-at-2.59.18-AM.png

you can look at www.tekgoblin.com and you will see this. 您可以访问www.tekgoblin.com,您将看到此信息。

I am not sure without further study, but your ad doesn't have a height and aslong as its always going to be the same height, you could set the below to fix the problem. 我不确定是否需要进一步研究,但是您的广告没有高度,只要高度始终保持不变,您可以设置以下内容来解决此问题。 If you don't have access to the CSS, then just place it in your local CSS to overwrite, and if that doesn't work assign !important; 如果您无权访问CSS,则只需将其放置在本地CSS中即可覆盖,如果这样做不起作用,请分配!important; to the height to overwrite the externally imported css creating issues for you. 覆盖到外部导入的CSS,从而为您创建问题。

div.bsap_1250066 {
    display: block;
    height: 245px;
    width: 100%;
}

Or you could define a fixed height for your h4 , achieving the same but not having static ad heights. 或者,您可以为h4定义一个固定的高度,以达到相同的高度,但不会具有固定的广告高度。 It really depends on how this effects your site globally, there are many fixes open to you. 这实际上取决于这如何影响您的网站在全球范围内,有许多修复程序可供您使用。

Remove to one properties in your css as like this: 像这样在CSS中删除一个属性:

div.bsap_1250066 a {
    float:left; // remove this line 
}

because you have allready define display:block; 因为您已经准备好定义display:block; .

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

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