说明 以下方式可以直接拷贝到浏览器运行,缩放拖动浏览器大小即可观看效果。 一、 利用定位实现 <!doctype html> <html> <style> .wrapper{ position : relative; background: #ccc; width: 10%; padding-bottom : 20%; } .inner{