float position的測试案例
生活随笔
收集整理的這篇文章主要介紹了
float position的測试案例
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
依據(jù)<a target=_blank href="http://blog.csdn.net/goodshot/article/details/44348525">http://blog.csdn.net/goodshot/article/details/44348525</a>我的測試 ? <p>一、</p>
<p>1.Container div is overflow is not seted ,float element is not be envoloped <br><br>2.And the postion is seted "static" which means it is not affluncented by the css top and left ect.<br><br>3.According to this example,we can see the "float" css attribute is only set the element in the 0 z-index layer. </p>
<div style="background-color:#CCC;;" ><div style="width:100px;height:100px; background-color:blue; "></div><div style="width:100px;height:100px; background-color:olive; float:left; margin-left:30px"></div>
</div>
?
?
二、<br> <br> 1.Container div is overflow seted ,float element is be envoloped <div style="background-color:#CCC;; overflow:auto" ><div style="width:100px;height:100px; background-color:olive; float:left; margin-left:30px; margin-top:20px">2.this is means masked.in the 0 z-index layer.</div><div style="width:100px;height:100px; background-color:blue; ">2. The static position is the default postion option,then this blue div is not affected by the "top" "left" ect. attributes ,the we can see it is located in the initial position. </div></div>以下的截圖是在FF中的
本文轉(zhuǎn)自mfrbuaa博客園博客,原文鏈接:http://www.cnblogs.com/mfrbuaa/p/5257977.html,如需轉(zhuǎn)載請自行聯(lián)系原作者
總結(jié)
以上是生活随笔為你收集整理的float position的測试案例的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IntelliJ IDEA 使用 Liv
- 下一篇: linux+nginx+mysql+ph