Unexpected results in browser

微信扫一扫,分享到朋友圈

Unexpected results in browser

Can somebody please help me understand why I am seeing what I am seeing?

Code
:


    
        
            #Viewport { width:50%; height:50%; margin: 0 auto; position: relative; background-color: blue; }
            #one { position: absolute; width: 5%; height: 70%; background-color: green;}
            #two { width: 5%; float: right; }
        
    
    
        

hi

hi

I expect to have widths of 5%
, not ~ 20%
. I expect to see colored backgrounds. This is weird. What gives?

Problem courtesy of: jay_t55

微信扫一扫,分享到朋友圈

Unexpected results in browser

使用webgl(three.js)搭建一个3D建筑,3D消防模拟,web版3D,bim管理系统——第四课

上一篇

2018品质电商节在杭举办国庆掀起探物风潮

下一篇

你也可能喜欢

Unexpected results in browser

长按储存图像,分享给朋友