Is the background of the div transparent:
This question is relatively simple, but it may be unfamiliar to beginners. For example, some beginners may think The background color of the div is white because that's how it sometimes looks. The following is an example to prove whether this is the case. The code is as follows:
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.51texiao.cn/" /><title>蚂蚁部落</title><style type="text/css">div { width: 100px; height: 100px; position: absolute;}.left { left: 20px; top: 20px; background-color: #699; z-index: 1;}.right { left: 40px; top: 40px; border: 1px solid red; z-index: 10;}</style></head><body><div class="left"></div><div class="right"></div></body></html>
As can be seen from the performance of the above code, the background of the div is transparent.
The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0508/937.html
The most original address is: http://www.softwhy.com/ forum.php?mod=viewthread&tid=4682