m0_37644267
cylhs
2017-10-18 11:44

插入背景图为何不显示啊??

  • html5

<!DOCTYPE html>



文件上传系统
*{margin:0px;padding:0px;list-style:none;} #bkg{ width:100%; height:100%; background:url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1508329245451&di=6e6032acf8c4c1e0a1fd459437f91334&imgtype=0&src=http%3A%2F%2Ffe.topitme.com%2Fe%2Ffa%2F23%2F1124393450dfc23faeo.jpg) no-repeat center; } #main{ width:500px; height:300px; position:absolute; overflow:hidden; left:50%; margin-left:-250px; top:50%; margin-top:-150px; } #form{ width:100%; text-align:center; } h1{ width:100%; height:50px; text-align:center; margin-bottom:50px; }

Upload your homework

upload a file:



  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答