通过应用程序图片发生了奇怪的事情 [英] Something strange happening with pictures through application

查看:94
本文介绍了通过应用程序图片发生了奇怪的事情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我们最近一直在更新我们的应用程序,我们添加了一些jquery和一些新的CSS样式.奇怪的是,由于某种原因,所有图像都设置得非常小.我在执行此操作的新添加的代码中找不到任何地方,这些文件中的图像没有任何痕迹,但显然是问题所在.如果我在新的CSS文件中设置大小,那很好.整个应用程序中有100幅图片,所以这不是一个实际的解决方案,如果有人可以帮助的话,这将是非常令人高兴的,欢呼.

Hey guys, we have recently been updating our application, we added some jquery and some new css styles. The wierd thing that is happening is that all the images are getting set really small for some reason. I can''t find anywhere in the newly added code that is doing this, there''s no refrence to images in these files but they are obviously the issue. If I set the sizes in a new css file the are fine. There are 100''s of pictures throughout the application so this is not a practical solution, if anyone can help it will be very much apreciated, cheers guys.

推荐答案

此问题可能是由CSS级联引起的.意味着很容易发生您将同一类(或ID)重置到同一CSS文件或html页面上的InLine CSS中的某些地方的情况.

您链接到页面的两个CSS文件也可以具有相同的类名.如果是这种情况,则最后一个文件将重置任何元素上的先前样式.尝试更改CSS文件的顺序并检查结果.

您可以在firefox或Google Chrome中使用FireBug来检查页面中任何元素上应用的css,只需右键单击并单击查看元素即可检查CSS.

我敢肯定,这样一来,您就可以得到您的错误并予以解决.

谢谢,如果有帮助,请回复.
This problem may be caused by CSS Cascade. Means it can easily happen that you have same class(or ID) being reset some where on the same CSS file or in InLine CSS on html page.

Also two CSS files that you are linking to a page can have same class name. If this is the case then last file will reset the previous style on any element. Try changing the order of the CSS files and check the result.

You can check the applied css on any element in the page using FireBug in firefox or in Google Chrome just right click and click on view element to check the CSS.

I am sure this way you can get your mistake and fix that.

Thanks and please reply if this helps you.


这篇关于通过应用程序图片发生了奇怪的事情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆