我正试图在“地平线”内带两个县,以展示形象。 你们不像在座的县那样,然后看一页,看上去看形象,但你看上去形象,而且上面有县。
这是我迄今为止在我的档案中制定的法典:
<g:FocusPanel ui:field="profileImagePanel" addStyleNames="{style.headerImage}">
<g:AbsolutePanel addStyleNames="{style.innerImagePanel}">
<g:Image ui:field="profileImage" addStyleNames="{style.profileImage}"/>
<g:HorizontalPanel ui:field="imageEditButtons" addStyleNames="{style.imageEditButtons}">
<w:MultiUseButton ui:field="clearImage" addStyleNames="{style.change}" type="secondary" text="{i18n.clearImage}" visible="false"/>
<w:MultiUseButton ui:field="changeImage" type="secondary" text="{i18n.changeImage}" visible="false"/>
</g:HorizontalPanel>
</g:AbsolutePanel>
</g:FocusPanel>
风格如下:
.headerImage {
position: absolute;
top: 0;
left: 0;
width: 150px;
}
.profileImage {
width: 150px;
position: relative;
}
.change {
float: right;
}
.headerImage a {
display: block;
}
.imageEditButtons {
width:100%;
}
.innerImagePanel {
width:150px;
}
I ve tried using a FlowPanel instead of an AbsolutePanel, but that doesn t work. I ve tried making the profileImage position:relative
and imageEditButtons position:absolute
but that screws up the whole display of the rest o the page. I also tried setting imageEditButtons margin-top:-20px
but it goes underneath the image instead of on top. If I put the HorizontalPanel in the AbsolutePanel before the Image, then the buttons are above the image and if I try changing the top margin, it shifts the buttons and Image down.
我 ideas弃思想。 任何关于如何开展这项工作的建议都会受到高度赞赏。