求教这样对吗,强行用上z-index
来源:5-2 编程练习
西瓜你个兔子的
2020-05-30 13:21:48
<html> <head> <style type="text/css"> div{ position:absolute; z-index:0; } div:nth-child(2){ left:30px; top:30px; z-index:10; } </style> </head> <body> <div> <img width="300px" height="246px" src="//img.mukewang.com/climg/5d6907640001942b19201080.jpg" /> </div> <div> <img width="300px" height="246px" src="//img.mukewang.com/climg/5d69081300019a7c09390769.jpg" /> </div> </body> </html>
1回答
同学你好,已完成练习。继续加油!
如果我的回答解决了你的疑惑,请采纳!祝学习愉快!
相似问题