盒模型的组成:margin+border+padding+content

在ie中: width = border+padding+content

在W3C(firefox)中: width = content

统一解决方案:
  添加"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" 到html顶部


查看当前页面采用哪个模型方式解析盒模型: alert($.support.boxModel);

相关文章:

  • 2021-11-25
  • 2021-06-11
  • 2021-11-21
  • 2021-06-06
猜你喜欢
  • 2021-11-27
  • 2021-10-22
  • 2021-06-24
  • 2021-05-12
  • 2022-02-22
  • 2022-12-23
相关资源
相似解决方案