题解 | #绝对定位#
绝对定位
http://www.nowcoder.com/practice/d9c56c0e7418437cbb6a59632af72939
{"css":".wrap {\n width: 100px;\n height: 100px;\n border: solid 1px black;\n /*补全代码*/\n position: relative;\n}\n.btn {\n width: 20px;\n height: 20px;\n text-align: center;\n background-color: red;\n /*补全代码*/\n position:absolute;\n top: -10px;\n right: -10px;\n}","js":"","html":"<div class='wrap'>\n\t<div class='btn'>X</div>\n</div>","libs":[]}