luneShaoGM

Results 4 comments of luneShaoGM

借鉴了大佬们的写法 ^ _ ^ ```js function Trim (str) { this.str = str } Trim.prototype = { left () { return this.str.replace(/^\s*/, '') }, right () { return this.str.replace(/\s*$/, '') },...

##### 共同点: 1. 盒子排放顺序都是 中、左、右; ```html center left right ``` 2. 中、左、右三个盒子都是左浮动; 3. 中间盒子宽 `100%`,左右盒子定宽; 4. 左盒子 `margin-left: -100%;`,右盒子 `margin-left: -右盒子宽`; ##### 区别: - 圣杯布局:利用 `container` 设置 `padding` ,压缩盒子内的空间,左右留出空间。左盒子设置 `margin-left:...