CSS sharepoint 2010站点操作和欢迎链接驯服代码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS sharepoint 2010站点操作和欢迎链接驯服代码相关的知识,希望对你有一定的参考价值。
<!-- master page code starts here -->
<%-- ===== Start Header ============================================================ --%>
<div id="headerwrap-outer"><div id="headerwrap">
<%-- id="mso_contentdiv" required, helps SharePoint put the web part editing pane in the main body on the right, you can move the ID if needed --%>
<div id="MSO_ContentDiv" runat="server">
<%-- link back to homepage, SiteLogoImage gets replaced by the Site Icon, you can hard code this so that its not overridden by the Site Icon or even remove --%>
<div class="s4-notdlg"><%-- NOTE: any time you see s4-notdlg, this element will be hidden from SharePoint dialog windows --%>
<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/">
<SharePoint:SiteLogoImage LogoImageUrl="/Style Library/custom/logo.png" runat="server"/>
</SharePoint:SPLinkButton>
</div>
<%-- this control is more navigation for mysites, otherwise it is empty --%>
<SharePoint:DelegateControl runat="server" ControlId="GlobalNavigation"/>
<div id="wel-si" class="s4-notdlg"><div id="welcel">
<%-- Welcome / Login control --%>
<%--<div class="s4-trc-container-menu">
<div>--%>
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
</wssuc:Welcome>
<%-- MultiLingual User Interface menu --%>
<wssuc:MUISelector ID="IdMuiSelector" runat="server"/>
<%--</div>
</div>--%>
</div><div id="sacel">
<%-- site actions --%>
<span class="ms-siteactionsmenu" id="siteactiontd">
<SharePoint:SiteActions runat="server" accesskey="<%$Resources:wss,tb_SiteActions_AK%>" id="SiteActionsMenuMain"
PrefixHtml=""
SuffixHtml=""
MenuNotVisibleHtml="&amp;nbsp;">
<CustomTemplate>
<SharePoint:FeatureMenuTemplate runat="server"
FeatureScope="Site"
Location="Microsoft.SharePoint.StandardMenu"
GroupId="SiteActions"
UseShortId="true"
>
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
Text="<%$Resources:wss,siteactions_editpage%>"
Description="<%$Resources:wss,siteactions_editpagedescriptionv4%>"
ImageUrl="/_layouts/images/ActionsEditPage.png"
MenuGroupId="100"
Sequence="110"
ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);"
/>
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_TakeOffline"
Text="<%$Resources:wss,siteactions_takeoffline%>"
Description="<%$Resources:wss,siteactions_takeofflinedescription%>"
ImageUrl="/_layouts/images/connecttospworkspace32.png"
MenuGroupId="100"
Sequence="120"
/>
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreatePage"
Text="<%$Resources:wss,siteactions_createpage%>"
Description="<%$Resources:wss,siteactions_createpagedesc%>"
ImageUrl="/_layouts/images/NewContentPageHH.png"
MenuGroupId="200"
Sequence="210"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Page')) { OpenCreateWebPageDialog('~site/_layouts/createwebpage.aspx') }"
PermissionsString="AddListItems, EditListItems"
PermissionMode="All" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateDocLib"
Text="<%$Resources:wss,siteactions_createdoclib%>"
Description="<%$Resources:wss,siteactions_createdoclibdesc%>"
ImageUrl="/_layouts/images/NewDocLibHH.png"
MenuGroupId="200"
Sequence="220"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('DocLib')) { GoToPage('~site/_layouts/new.aspx?FeatureId={00bfea71-e717-4e80-aa17-d0c71b360101}&amp;ListTemplate=101') }"
PermissionsString="ManageLists"
PermissionMode="Any"
VisibilityFeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateSite"
Text="<%$Resources:wss,siteactions_createsite%>"
Description="<%$Resources:wss,siteactions_createsitedesc%>"
ImageUrl="/_layouts/images/newweb32.png"
MenuGroupId="200"
Sequence="230"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Site')) { STSNavigate('~site/_layouts/newsbweb.aspx') }"
PermissionsString="ManageSubwebs,ViewFormPages"
PermissionMode="All" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_Create"
Text="<%$Resources:wss,siteactions_create%>"
Description="<%$Resources:wss,siteactions_createdesc%>"
MenuGroupId="200"
Sequence="240"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('All')) { STSNavigate('~site/_layouts/create.aspx') }"
PermissionsString="ManageLists, ManageSubwebs"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_ViewAllSiteContents"
Text="<%$Resources:wss,quiklnch_allcontent%>"
Description="<%$Resources:wss,siteactions_allcontentdescription%>"
ImageUrl="/_layouts/images/allcontent32.png"
MenuGroupId="300"
Sequence="302"
UseShortId="true"
ClientOnClickNavigateUrl="~site/_layouts/viewlsts.aspx"
PermissionsString="ViewFormPages"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditSite"
Text="<%$Resources:wss,siteactions_editsite%>"
Description="<%$Resources:wss,siteactions_editsitedescription%>"
ImageUrl="/_layouts/images/SharePointDesigner32.png"
MenuGroupId="300"
Sequence="304"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="EditInSPD('~site/',true);"
PermissionsString="AddAndCustomizePages"
PermissionMode="Any"
/>
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_SitePermissions"
Text="<%$Resources:wss,people_sitepermissions%>"
Description="<%$Resources:wss,siteactions_sitepermissiondescriptionv4%>"
ImageUrl="/_layouts/images/Permissions32.png"
MenuGroupId="300"
Sequence="310"
UseShortId="true"
ClientOnClickNavigateUrl="~site/_layouts/user.aspx"
PermissionsString="EnumeratePermissions"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_Settings"
Text="<%$Resources:wss,settings_pagetitle%>"
Description="<%$Resources:wss,siteactions_sitesettingsdescriptionv4%>"
ImageUrl="/_layouts/images/settingsIcon.png"
MenuGroupId="300"
Sequence="320"
UseShortId="true"
ClientOnClickNavigateUrl="~site/_layouts/settings.aspx"
PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_CommitNewUI"
Text="<%$Resources:wss,siteactions_commitnewui%>"
Description="<%$Resources:wss,siteactions_commitnewuidescription%>"
ImageUrl="/_layouts/images/visualupgradehh.png"
MenuGroupId="300"
Sequence="330"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="GoToPage('~site/_layouts/prjsetng.aspx')"
PermissionsString="ManageWeb"
PermissionMode="Any"
ShowOnlyIfUIVersionConfigurationEnabled="true" />
</SharePoint:FeatureMenuTemplate>
</CustomTemplate>
</SharePoint:SiteActions></span>
</div>
<div><a href="#">Custom Link 1</a></div>
<div><a href="#">Custom Link 2</a></div>
<div class="searchCell"> <%-- search box loads from delegate, style with CSS --%>
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/>
</asp:ContentPlaceHolder>
</div >
</div ><%-- /#wel-si --%>
<div class="clear"></div></div><%-- /#headerwrap --%></div> <%-- /#headerwrap-outer --%>
<%-- ===== End Header ============================================================ --%>
<!-- end master page code -->
<style type ="text/css">
/********************* start css ***************************/
/* ================================ @header ========================================*/
/************** welcome and site actions area ***************************/
#headerwrap { position:relative;}
#wel-si {position:absolute; right:0px; top:10px; display:table-row;}
#wel-si > div {display:table-cell; vertical-align: top;}
#wel-si * { margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0;}
.ms-SpLinkButtonActive, .ms-siteactionsmenuinner, .ms-siteactionsmenuhover {background:none !important; border:none; height:auto;}
.ms-siteactionsmenuinner, .ms-siteactionsmenuhover, .ms-welcomeMenu {font-family: Helvetica, Arial, sans-serif !important ;}
.s4-trc-container-menu, .ms-welcomeMenu, .ms-siteactionsmenu > span > a > span {margin:0; padding:0; border:none;}
.ms-siteactionsmenuinner, .ms-siteactionsmenuhover {padding-top:0;}
.ms-siteactionsmenuinner, .ms-siteactionsmenuhover, .ms-siteactionsmenuinner a, .ms-siteactionsmenu > span > a, .ms-welcomeMenu a:link, .ms-welcomeMenu.ms-SpLinkButtonActive a:link, #wel-si > div a, #wel-si > div a:link
{color:#999999; font-size:10px;}
.ms-menu-a img {/*see @hidden */}
.searchCell {padding-right:17px;}
</style>
以上是关于CSS sharepoint 2010站点操作和欢迎链接驯服代码的主要内容,如果未能解决你的问题,请参考以下文章
如何在 Sharepoint 2010 Web 部件页中正确更新站点图标
从事件接收器重定向Sharepoint 2010(创建站点后)
用microsoft sharepoint designer2010怎么做网站? 谢谢