圣杯布局不加right也能实现

问题遇到的现象和发生背景

我看网上的都要给右元素加了right才是对的显示,但是我自己尝试写了又不用加,不知道是什么情况

问题相关代码,请勿粘贴截图
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <script src="http://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js"></script>
  </head>
  <style>
    body{
      min-width: 1000px;
    }
    .a{
      height: 300px;
      float: left;
      position: relative;
    }
    .wrapper{
      padding: 0 300px 0 200px;
    }
    #center{
      background-color: tomato;
      width: 100%;
    }
    #left{
      background-color: aqua;
      width: 200px;
      margin-left: -100%;
      left: -200px;
    }
    #right{
      background-color: aquamarine;
      width: 300px;
      margin-right: -300px;
    }
  </style>

  <body>
    <div class="wrapper">
      <div class="a" id="center"></div>
      <div class="a" id="left"></div>
      <div class="a" id="right"></div>
    </div>
  </body>
</html>

运行结果及报错内容

img


这是不加right运行出来的,也是对的呗

不加right样式?你加到a类了,所以right不加也行