将我的sharepoint网站标题从左向右移动

时间:2013-09-03 21:00:33

标签: css layout sharepoint-2013

我修改了我的母版页以将网站集标题从正文移动到我的上部套件栏内。因此,我将以下h1 div代码移到套件栏DIV中,如下所示: -

<div id="suiteLinksBox">
<SharePoint:DelegateControl id="ID_SuiteLinksDelegate" ControlId="SuiteLinksDelegate" runat="server" />
</div>

    <h1 id="pageTitle" class="ms-core-pageTitle" style="color:white;float:left">
      <SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">
        <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">
            <SharePoint:SPTitleBreadcrumb
                  runat="server"
                  RenderCurrentNodeAsLink="true"
                      SiteMapProvider="SPContentMapProvider"
                  CentralAdminSiteMapProvider="SPXmlAdminContentMapProvider">
            <PATHSEPARATORTEMPLATE>
              <SharePoint:ClusteredDirectionalSeparatorArrow runat="server" />
            </PATHSEPARATORTEMPLATE>
          </SharePoint:SPTitleBreadcrumb>
        </asp:ContentPlaceHolder>
      </SharePoint:AjaxDelta>
      <SharePoint:AjaxDelta BlockElement="true" id="DeltaPlaceHolderPageDescription" CssClass="ms-displayInlineBlock ms-normalWrap" runat="server">
        <a href="javascript:;" id="ms-pageDescriptionDiv" style="display:none;">
          <span id="ms-pageDescriptionImage">&#160;</span>
        </a>
        <span class="ms-accessible" id="ms-pageDescription">
          <asp:ContentPlaceHolder id="PlaceHolderPageDescription" runat="server" />
        </span>
        <SharePoint:ScriptBlock runat="server">
          _spBodyOnLoadFunctionNames.push("setupPageDescriptionCallout");
        </SharePoint:ScriptBlock>
      </SharePoint:AjaxDelta>
    </h1>

结果是网站标题(在我的情况下是Dicusion论坛)将位于屏幕的右侧,虽然我为float:left div定义了h1,所以有没有办法将它移到徽标旁边的左边?

enter image description here

如果他知道怎么做,有人可以提出建议吗?

1 个答案:

答案 0 :(得分:-1)

pageTitle {position:absolute;左:400px;顶部:30px}可以正常工作