💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ <title>Document</title> <style> .parent{ width:400px; height:400px; background: red; position: relative; } .child{ position: absolute; width:100px; height:100px; background: yellow; /* left:50%; margin-left:-50px; top:50%; margin-top: -50px; */ margin:auto; left:0;right:0;bottom:0;top:0; } </style> </head> <body> <div class="parent"> <div class="child"> </div> </div> </body> ~~~