隐藏ribbon按钮
有三种方式:
1.#Ribbon\.DocLibListForm\.Edit\.Commit\.CheckIn-Large {display:none;}
2.<script type="text/javascript">
var elem = document.getElementById("Ribbon.DocLibListForm.Edit.Commit.CheckIn-Large");
elem.style.display ="none";
</script>
3.
?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="RemoveRibbonButton" Location="CommandUI.Ribbon"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.Documents.Share.AlertMe.Menu.ManageAlerts" /> </CommandUIDefinitions> <CommandUIHandlers> <CommandUIHandler Command="NewDefaultDocument" CommandAction="javascript:;" EnabledScript="false" /> </CommandUIHandlers> </CommandUIExtension> </CustomAction> </Elements>