<html> <body> <div style="float:left;width:600px;height:400px;background-color:gray;padding-top:10px;"> <div style="height:25px;background-color:yellow;width:200px;margin:0 auto;"> <div style="float:left;">用户名:</div> <div style="float:left;"><input type="text" style="width:100px;"></div> </div> </div> </body> </html>
div相对于外层div居中
猜你喜欢
转载自f543711700.iteye.com/blog/1931833
今日推荐
周排行