topmargin=\"0\" doesn\'t work in Firefox?
2013-07-12 11:01
375 查看
topmargin="0" doesn't work in Firefox?
"topmargin", "bottommargin", "leftmargin" and "rightmargin" are proprietary ("IE") selectors. They only work on IE. Other browsers do not understand this, and ignore them. Best to not use them.
I always add this before "</head>" which does the same thing, AND it is what all browsers do by default. All except IE, which 'assumes' several pixels for each value. This line re-sets IE to "zero" and makes your page be identical with all browsers...:
<style type="text/css">
body, html {margin:0; padding:0; border:0;} /* Re-sets IE to "zero" for these values */
</style>
"topmargin", "bottommargin", "leftmargin" and "rightmargin" are proprietary ("IE") selectors. They only work on IE. Other browsers do not understand this, and ignore them. Best to not use them.
I always add this before "</head>" which does the same thing, AND it is what all browsers do by default. All except IE, which 'assumes' several pixels for each value. This line re-sets IE to "zero" and makes your page be identical with all browsers...:
<style type="text/css">
body, html {margin:0; padding:0; border:0;} /* Re-sets IE to "zero" for these values */
</style>
相关文章推荐
- When Element add attribute by the method "setAttribute",It can't work in IE
- TLS doesn't work on PPPoE in Chelan: MTU issue
- window.close() doesn't work - Scripts may not close windows that were not opened by script.
- JavaScript Var 'Undefined' in Firefox; IE and Opera Work fine
- django提交表单提示"You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SL
- python 处理中文时出现的错误'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)" 解决方法
- eclipse插件Maven添加依赖查询无结果的解决方法(Select Dependency doesn't work)
- Jquery获取元素的margin-top:$("#id").offset().top
- Attempting to start Apache service...but apache doesn't work
- BitmapImage.UriSource binding doesn't work ...
- mysql check constraint doesn't work
- python 处理中文时出现的错误'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)" 解决方法
- adb logcat filter doesn't work
- My Backspace Key doesn't work!
- ViewPager.setOffscreenPageLimit(0) doesn't work as expected
- My Backspace Key doesn't work!
- set_terminate doesn't work
- 貌似csdn文章搜索doesn't work
- eclipse插件Maven添加依赖查询无结果的解决方法(Select Dependency doesn't work)
- Xcode code sense and cmd+click to symbol doesn't work for 1 of my projects