`
yangyiqian
  • 浏览: 115151 次
  • 来自: ...
社区版块
存档分类
最新评论

tomargin 在ie,firefox中的正确使用方法

阅读更多
http://www.webmasterworld.com/forum119/25.htm

topmargin and LEFTMARGIN are old proprietary IE.
MARGINHEIGHT and MARGINWIDTH were the old Netscape equivalents.

None are valid HTML 4.01. Not even transitional.
I suggest you update your knowledgebase.

The easiest solution is to use CSS.
inline CSS:
<body style="margin: 30% 10px;">

or add this to your <head>:
<style type="text/css">
body {margin: 30% 10px;}
</style> 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics