CSS overlay issue in Google Chrome

I have a very strange problem displaying an image in Google Chrome.

When I hover over a menu, I get a background image in Mozilla and IE, but not in Chrome.

I used the following CSS script for the menu item.

.content_resize { padding-right:0; padding-top:16px; width:930px;background-color:#fff; }
.content .mainbar { float:left; width:630px;}
.content .newstick { float:center; width:650px;}
.content .mainbar img { margin-bottom:24px; padding:4px; border:1px solid #b7b7b7; background-color:#fff;}
.content .mainbar img.fl { float:left; margin-right:12px;}
.content .mainbar .article, .content .sidebar .gadget { margin:0; padding:0 0 16px 0;}
.content .sidebar { float:right; width:276px;}
ul.sb_menu, ul.ex_menu { margin:0; padding:0; list-style:none; color:#959595;}
ul.sb_menu li, ul.ex_menu li { margin:0; }
ul.sb_menu li { padding:4px 0; border-bottom:1px solid #e3e3e3; width:220px;}
ul.ex_menu li { padding:4px 0 8px;}
ul.sb_menu li a, ul.ex_menu li a { color:#5f5f5f; text-decoration:none; margin-left:-16px; padding-left:5px;}

ul.sb_menu li a:hover, ul.ex_menu li a:hover { color:#FFFFFF; font-weight:bold; display:block; width:200px ; height:25px; background:url(images/menu_bg.gif)  no-repeat left top;}

ul.sb_menu li a:hover { text-decoration:underline;}
ul.ex_menu li a:hover { text-decoration:none;}
.content .scroll {  float:left; background:url(images/scroll_bg.gif)  no-repeat left top;  display:block; margin-left:35px; height:200px; width:180px;  OVERFLOW: hidden;background-color:transparent;} 

It works great with Internet Explorer and Mozilla. Until it shows a background image for a menu hovering in chrome. Can anybody help me?

+3
source share
2 answers

Not too late for an answer, hope?

- , display:block; , , -, WebKit. , display:block; ul.sb_menu li a:hover, ul.ex_menu li a:hover ul.sb_menu li a, ul.ex_menu li a

, , width:200px; height:25px; . , IE, Firefox Opera, .

0

, : chrome gif

GIF , (, img: hover).

, :

0

Source: https://habr.com/ru/post/1780221/


All Articles