老外写的js脚本注释
// I had to make all top elements - logo, ribbon - with absolute position.
// I could not make terrain windows absolute position, since it breaks the iframe trick to place elements over it.
// If i left ribbon or logo with not absolute position it was in document flow. This means that 3D window will be in flow under them
// and when ribbon is minimized it will still appear under logo, which is not good.
// By making both logo and ribbon absolute, the document flow does not include them. So 3d window aligned to top.
// to make it(and left panel) appear under ribbon/logo i use top margin.
// I could not make terrain windows absolute position, since it breaks the iframe trick to place elements over it.
// If i left ribbon or logo with not absolute position it was in document flow. This means that 3D window will be in flow under them
// and when ribbon is minimized it will still appear under logo, which is not good.
// By making both logo and ribbon absolute, the document flow does not include them. So 3d window aligned to top.
// to make it(and left panel) appear under ribbon/logo i use top margin.
转载于:https://blog.51cto.com/speciallist/1111160