0
我正在为WebSphere Portal
主题创建自定义layout
。
我想要有2行,每行有2个portlet
容器旁边eachother,每个占50%的屏幕宽度。
将portlet添加到容器时,我希望它们遵循列顺序。
任何有关websphere portal
布局的任何经验?Portlet容器的自定义布局
<div class="hiddenWidgetsDiv">
<!-- widgets in this container are hidden in the UI by default -->
<div class="component-container hiddenWidgetsContainer ibmDndRow wpthemeCol12of12 wpthemeFull" name="ibmHiddenWidgets"></div>
<div style="clear:both"></div>
</div>
<div class="wpthemeRow">
<div>
<div class="component-container wpthemeCol ibmDndColumn wpthemeCol6of12" name="headline1"></div>
</div>
<div>
<div class="component-container wpthemeCol ibmDndColumn wpthemeCol6of12" name="headline2"></div>
</div>
</div>
<div class="wpthemeRow">
<div>
<div class="component-container wpthemeCol ibmDndColumn wpthemeCol6of12" name="headline3"></div>
</div>
<div>
<div class="component-container wpthemeCol ibmDndColumn wpthemeCol6of12" name="headline4"></div>
</div>
</div>
但标记结果在这种布局中,这看起来非常奇怪..
你是不是想创建2行2列?我觉得你正在挣扎并且不满意你使用49%而不是50%的事实。 – chdltest 2014-10-31 16:37:26
@bigal是的,基本上瞄准2x2网格。当我使用'50%'时,我正在包装问题 – bobbyrne01 2014-11-03 13:09:35
也许尝试寻找使用css box-sizing:border-box? (如果你可以在jsfiddle中重新创建它,它会帮助我很多) – chdltest 2014-11-03 17:21:26