简体   繁体   English

css悬停时奇怪的噪音

[英]Weird noise on css hover

I figured I would ask you all before emailing the developer. 我想在给开发者发电子邮件之前我会问你们所有人。 Is anyone familiar with a strange 'noise' accross the screen on a CSS hover? 是否有人在CSS悬停屏幕上熟悉一个奇怪的'噪音'? This only happens when I use a variable instead of a number in the cssMap function as seen below. 这只发生在我使用变量而不是cssMap函数中的数字时,如下所示。 I am using Winston Wolf's CSS Clickable Map . 我正在使用Winston Wolf的CSS Clickable Map See in action here: http://animalnecessity.com/company/where-to-buy 请参阅此处的操作: http//animalnecessity.com/company/where-to-buy

var windowWidth=J(window).width();
            console.log(windowWidth);

            if (windowWidth>500 && windowWidth<750){
                var size= 750;
            }
            else if (windowWidth>750 && windowWidth<960){
                var size= 850;
            }
            else if (windowWidth>960){
                var size= 960;
            }
            else
                console.log('Not working');


            J(function(J)   
            {       
                J('#map-usa').cssMap(       
            {           
                'size' : size,          
                'tooltips' : 'floating',            
                'cities': false,                    
            });     
            }); 

Your continents image seems to be corrupted: http://animalnecessity.com/skin/frontend/default/animalnecessity/cssmap-continents/continents-960.png 您的大陆形象似乎已损坏: http//animalnecessity.com/skin/frontend/default/animalnecessity/cssmap-continents/continents-960.png

洲

And here it is in Chrome: 这是在Chrome中: 在此输入图像描述

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

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