快捷导航

为什么我的背景图不出来

div部分
Css部分

*{margin: 0 ;padding: 0}body{font-size: 14px;color: #fff;font-family: '微软雅黑'}html,body{ height:100%; overflow:hidden;position: relative}.section{ display: none; position:absolute; top:0; left:0; width:100%; height:100%;}.section.sec1{background: url("images/bg.png")no-repeat center ;width: 100%;height: 100%;background-size: 100% 100%;}

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

你css第四行display:none;把这个元素隐藏了啊!所以看不到
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP