开发者社区 问答 正文

问 请教html定位问题。

微信扫一扫明明已经定位了,为什么缩小浏览器窗口就看不见了呢,是定位的父标签不对吗?
screenshot
screenshot


.weixing
   { width: 150px;
     height: 200px;
     background: url(../images/weixin.jpg) no-repeat;
     position: absolute;
     left: 1450px;
     top: 600px;
     z-index: 1000;
    }

展开
收起
杨冬芳 2016-06-21 16:46:21 2482 分享 版权
1 条回答
写回答
取消 提交回答
  • IT从业

    position: absolute;和position: fixed;看你需要的效果择一。两者的相对定位也不一样,fixed是相对于浏览器窗口进行定位的,可以使用left、right、top、bottom来进行定位。

    2019-07-17 19:45:06
    赞同 展开评论
问答标签:
问答地址: