为什么在Firefox中打开我的网站时图像位置正在变化? [英] Why images position is chaging while opening my website in firefox?

查看:53
本文介绍了为什么在Firefox中打开我的网站时图像位置正在变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个网站,因为我将10个图像放在padding-top属性中。我正在开发基于chrome的网站。图像在chrome中正确显示。但是,当我在firefox中打开我的网站时,图像的格式不正确。图像正在上升。我怎么能解决这个问题,有什么解决方案吗?

I am creating one website in that i am placing the 10 images with "padding-top" attribute. I am developing the website based on chrome . The images are coming correctly in chrome. But, when i am opening my website in firefox the images are not coming in correct format. Images are coming to upper position. How can i solve this issue, is there any solution?

推荐答案



根据你的问题,尝试先重置你的css 。



Hi,
as per your question, try to reset your css first.

引用:

CSS重置(或重置CSS)是一个简短的,经常压缩(缩小)的CSS规则集,它将所有HTML元素的样式重置为一致的基线。



如果您不知道,每个浏览器有自己的默认用户代理样式表,它用于使无样式的网站看起来更清晰。例如,大多数浏览器默认情况下使链接为蓝色,访问链接为紫色,为表提供一定量的边框和填充,将可变字体大小应用于H1,H2,H3等,并对几乎所有内容应用一定量的填充。有没有想过为什么每个浏览器中的提交按钮看起来都不一样?

A CSS Reset (or "Reset CSS") is a short, often compressed (minified) set of CSS rules that resets the styling of all HTML elements to a consistent baseline.

In case you didn’t know, every browser has its own default ‘user agent’ stylesheet, that it uses to make unstyled websites appear more legible. For example, most browsers by default make links blue and visited links purple, give tables a certain amount of border and padding, apply variable font-sizes to H1, H2, H3 etc. and a certain amount of padding to almost everything. Ever wondered why Submit buttons look different in every browser?


这篇关于为什么在Firefox中打开我的网站时图像位置正在变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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