第一種方法:
<!DOCTYPE><html lang="en"><head><meta charset="UTF-8"><title>Document</title><style>.one {position: absolute;height: 200px;width: 300px;background-color: blue;}.two {height: 200px;margin-left: 300px;background-color: red;}</style></head><body><div class="one"></div><div class="two">第一種方法</div></body></html>
第二種方法:
<!DOCTYPE><html lang="en"><head><meta charset="UTF-8"><title>Document</title><style>.one {float:left;height: 200px;width: 300px;background-color: blue;}.two {overflow: auto;height: 200px;background-color: red;}</style></head><body><div class="one"></div><div class="two">第二種方法</div></body></html>
以上就是本文的全部?jī)?nèi)容,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來(lái)一定的幫助,同時(shí)也希望多多支持VeVb武林網(wǎng)!
新聞熱點(diǎn)
疑難解答
圖片精選