左边DIV①的扩充内容DIV②(DIV②属于DIV①中的内容)如何显示在右边iframe的上方?
1条回答 默认 最新
- 天际的海浪 2018-10-08 14:18关注
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title> 页面名称 </title> <style type="text/css"> #div1 { float: left; width: 200px; height: 500px; background-color: #99f; position: relative; } #div2 { position: absolute; left: 150px; top: 200px; z-index: 999; width: 200px; height: 100px; background-color: #9f0; } </style> </head> <body> <div id="div1"> <div id="div2"></div> </div> <iframe src="https://www.baidu.com" frameborder="0" width="600" height="500"></iframe> </body> </html>
解决 无用评论 打赏 举报
悬赏问题
- ¥15 #MATLAB仿真#车辆换道路径规划
- ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
- ¥15 数据可视化Python
- ¥15 要给毕业设计添加扫码登录的功能!!有偿
- ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
- ¥15 微信公众号自制会员卡没有收款渠道啊
- ¥15 stable diffusion
- ¥100 Jenkins自动化部署—悬赏100元
- ¥15 关于#python#的问题:求帮写python代码
- ¥20 MATLAB画图图形出现上下震荡的线条