<style> .jindu { width: 400px; height: 30px; background:blue; position: relative; } .zhi{ height: 30px; width: 30%; background: red; float: left; } .su{ height: 30px; line-height: 30px; position: absolute; right:10px; color: white; } </style></head><body><div class="jindu"> <div class="zhi"></div> <div class="su">30%</div></div></body>
时间: 2024-10-07 03:52:08