本文介绍了日历的字体颜色更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 我正在使用sharepoint 2013并尝试更改日历颜色。我编辑了.spcolour文件来改变块的颜色 但我努力将字体颜色从白色变为黑色。我已经改变了我在 .spcolour中看到的一切,但还没有设法找到它。代码包含在下面。 <?xml version =" 1.0"编码= QUOT; UTF-8英寸;?> < s:colorPalette isInverted =" false" previewSlot1 = QUOT; BackgroundOverlay" previewSlot2 = QUOT; BODYTEXT" previewSlot3 = QUOT; AccentText"的xmlns:S =" HTTP://schemas.microsoft.com/sharepoint/"> < s:color name =" BodyText"值= QUOT; 444444" /> < s:color name =" SubtleBodyText"值= QUOT; 777777" /> < s:color name =" StrongBodyText"值= QUOT; 262626" /> < s:color name =" DisabledText"值= QUOT; B1B1B1" /> < s:color name =" SiteTitle"值= QUOT; 262626" /> < s:color name =" WebPartHeading"值= QUOT; 444444" /> < s:color name =" ErrorText"值= QUOT; BF0000" /> < s:color name =" AccentText"值= QUOT; 0072C6" /> < s:color name =" SearchURL"值= QUOT; 338200" /> < s:color name =" Hyperlink"值= QUOT; 0072C6" /> < s:color name =" Hyperlinkfollowed"值= QUOT; 663399" /> < s:color name =" HyperlinkActive"值= QUOT; 004D85" /> < s:color name =" CommandLinks"值= QUOT; 666666" /> < s:color name =" CommandLinksSecondary"值= QUOT; 262626" /> < s:color name =" CommandLinksHover"值= QUOT; 0072C6" /> < s:color name =" CommandLinksPressed"值= QUOT; 004D85" /> < s:color name =" CommandLinksDisabled"值= QUOT; B1B1B1" /> < s:color name =" BackgroundOverlay"值= QUOT; D8FFFFFF" /> < s:color name =" DisabledBackground"值= QUOT; FDFDFD" /> < s:color name =" PageBackground"值= QUOT; FFFFFF" /> < s:color name =" HeaderBackground"值= QUOT; D8FFFFFF" /> < s:color name =" FooterBackground"值= QUOT; D8FFFFFF" /> < s:color name =" SelectionBackground"值= QUOT; 7F9CCEF0" /> < s:color name =" HoverBackground"值= QUOT; 7FCDE6F7" /> < s:color name =" RowAccent"值= QUOT; 0072C6" /> < s:color name =" StrongLines"值= QUOT; 92C0E0" /> < s:color name =" Lines"值= QUOT; ABABAB" /> < s:color name =" SubtleLines"值= QUOT; C6C6C6" /> < s:color name =" DisabledLines"值= QUOT; E1E1E1" /> < s:color name =" AccentLines"值= QUOT; 2A8DD4" /> < s:color name =" DialogBorder"值= QUOT; DEDEDE" /> < s:color name =" Navigation"值= QUOT; 666666" /> < s:color name =" NavigationAccent"值= QUOT; 0072C6" /> < s:color name =" NavigationHover"值= QUOT; 0072C6" /> < s:color name =" NavigationPressed"值= QUOT; 004D85" /> < s:color name =" NavigationHoverBackground"值= QUOT; 7FCDE5F6" /> < s:color name =" NavigationSelectedBackground"值= QUOT; C6EFEFEF" /> < s:color name =" EmphasisText"值= QUOT; FFFFFF" /> < s:color name =" EmphasisBackground"值= QUOT; 0072C6" /> < s:color name =" EmphasisHoverBackground"值= QUOT; 0067B0" /> < s:color name =" EmphasisBorder"值= QUOT; 0067B0" /> < s:color name =" EmphasisHoverBorder"值= QUOT; 004D85" /> < s:color name =" SubtleEmphasisText"值= QUOT; 666666" /> < s:color name =" SubtleEmphasisCommandLinks"值= QUOT; 262626" /> < s:color name =" SubtleEmphasisBackground"值= QUOT; C6EFEFEF" /> < s:color name =" TopBarText"值= QUOT; 666666" /> < s:color name =" TopBarBackground"值= QUOT; C6EFEFEF" /> < s:color name =" TopBarHoverText"值= QUOT; 333333" /> < s:color name =" TopBarPressedText"值= QUOT; 333333" /> < s:color name =" HeaderText"值= QUOT; 444444" /> < s:color name =" HeaderSubtleText"值= QUOT; 777777" /> < s:color name =" HeaderDisableText"值= QUOT; B1B1B1" /> < s:color name =" HeaderNavigationText"值= QUOT; 666666" /> < s:color name =" HeaderNavigationHoverText"值= QUOT; 0072C6" /> < s:color name =" HeaderNavigationPressedText"值= QUOT; 004D85" /> < s:color name =" HeaderNavigationSelectedText"值= QUOT; 0072C6" /> < s:color name =" HeaderLines"值= QUOT; ABABAB" /> < s:color name =" HeaderStrongLines"值= QUOT; 92C0E0" /> < s:color name =" HeaderAccentLines"值= QUOT; 2A8DD4" /> < s:color name =" HeaderSubtleLines"值= QUOT; C6C6C6" /> < s:color name =" HeaderDisabledLines"值= QUOT; E1E1E1" /> < s:color name =" HeaderDisabledBackground"值= QUOT; FDFDFD" /> < s:color name =" HeaderFlyoutBorder"值= QUOT; D1D1D1" /> < s:color name =" HeaderSiteTitle"值= QUOT; 262626" /> < s:color name =" SuiteBarBackground"值= QUOT; 0072C6" /> < s:color name =" SuiteBarHoverBackground"值= QUOT; 4B9BD7" /> < s:color name =" SuiteBarText"值= QUOT; FFFFFF" /> < s:color name =" SuiteBarDisabledText"值= QUOT; C6C6C6" /> < s:color name =" ButtonText"值= QUOT; 444444" /> < s:color name =" ButtonDisabledText"值= QUOT; B1B1B1" /> < s:color name =" ButtonBackground"值= QUOT; FDFDFD" /> < s:color name =" ButtonHoverBackground"值= QUOT; E6F2FA" /> < s:color name =" ButtonPressedBackground"值= QUOT; 92C0E0" /> < s:color name =" ButtonDisabledBackground"值= QUOT; FDFDFD" /> < s:color name =" ButtonBorder"值= QUOT; ABABAB" /> < s:color name =" ButtonHoverBorder"值= QUOT; 92C0E0" /> < s:color name =" ButtonPressedBorder"值= QUOT; 2A8DD4" /> < s:color name =" ButtonDisabledBorder"值= QUOT; E1E1E1" /> < s:color name =" ButtonGlyph"值= QUOT; 666666" /> < s:color name =" ButtonGlyphActive"值= QUOT; 444444" /> < s:color name =" ButtonGlyphDisabled"值= QUOT; B1B1B1" /> < s:color name =" TileText"值= QUOT; FFFFFF" /> < s:color name =" TileBackgroundOverlay"值= QUOT; 99000000" /> < s:color name =" ContentAccent1"值= QUOT; 9BC2E6" /> < s:color name =" ContentAccent2"值= QUOT; F4B084" /> < s:color name =" ContentAccent3"值= QUOT; A9D08E" /> < s:color name =" ContentAccent4"值= QUOT; FFD966" /> < s:color name =" ContentAccent5"值= QUOT; f25500" /> < s:color name =" ContentAccent6"值= QUOT; ffc04d" /> < / s:colorPalette> 解决方案 您好, 如果您想将日历颜色从白色更改为黑色,作为解决方法,我们可以将以下CSS样式添加到脚本编辑器Web部件中实现它的日历视图页面。< style type =" text / css"> .ms-acal-sdiv,.ms-acal-mdiv,.ms-acal-ddiv,。ms-acal-sdiv a,.ms-acal-mdiv a,.ms-acal-ddiv a {颜色:黑色!重要; } < / style> 最好的问候, Dennis Hi all,i am working with sharepoint 2013 and im trying to change the calendar colours. I've edited the .spcolour file to change the colours of the blocks but im struggling to change the font colour from white to black. I've changed everything I can see in the .spcolour but havent managed to find it yet. code included below.<?xml version="1.0" encoding="utf-8"?><s:colorPalette isInverted="false" previewSlot1="BackgroundOverlay" previewSlot2="BodyText" previewSlot3="AccentText" xmlns:s="http://schemas.microsoft.com/sharepoint/"> <s:color name="BodyText" value="444444" /> <s:color name="SubtleBodyText" value="777777" /> <s:color name="StrongBodyText" value="262626" /> <s:color name="DisabledText" value="B1B1B1" /> <s:color name="SiteTitle" value="262626" /> <s:color name="WebPartHeading" value="444444" /> <s:color name="ErrorText" value="BF0000" /> <s:color name="AccentText" value="0072C6" /> <s:color name="SearchURL" value="338200" /> <s:color name="Hyperlink" value="0072C6" /> <s:color name="Hyperlinkfollowed" value="663399" /> <s:color name="HyperlinkActive" value="004D85" /> <s:color name="CommandLinks" value="666666" /> <s:color name="CommandLinksSecondary" value="262626" /> <s:color name="CommandLinksHover" value="0072C6" /> <s:color name="CommandLinksPressed" value="004D85" /> <s:color name="CommandLinksDisabled" value="B1B1B1" /> <s:color name="BackgroundOverlay" value="D8FFFFFF" /> <s:color name="DisabledBackground" value="FDFDFD" /> <s:color name="PageBackground" value="FFFFFF" /> <s:color name="HeaderBackground" value="D8FFFFFF" /> <s:color name="FooterBackground" value="D8FFFFFF" /> <s:color name="SelectionBackground" value="7F9CCEF0" /> <s:color name="HoverBackground" value="7FCDE6F7" /> <s:color name="RowAccent" value="0072C6" /> <s:color name="StrongLines" value="92C0E0" /> <s:color name="Lines" value="ABABAB" /> <s:color name="SubtleLines" value="C6C6C6" /> <s:color name="DisabledLines" value="E1E1E1" /> <s:color name="AccentLines" value="2A8DD4" /> <s:color name="DialogBorder" value="DEDEDE" /> <s:color name="Navigation" value="666666" /> <s:color name="NavigationAccent" value="0072C6" /> <s:color name="NavigationHover" value="0072C6" /> <s:color name="NavigationPressed" value="004D85" /> <s:color name="NavigationHoverBackground" value="7FCDE5F6" /> <s:color name="NavigationSelectedBackground" value="C6EFEFEF" /> <s:color name="EmphasisText" value="ffffff" /> <s:color name="EmphasisBackground" value="0072C6" /> <s:color name="EmphasisHoverBackground" value="0067B0" /> <s:color name="EmphasisBorder" value="0067B0" /> <s:color name="EmphasisHoverBorder" value="004D85" /> <s:color name="SubtleEmphasisText" value="666666" /> <s:color name="SubtleEmphasisCommandLinks" value="262626" /> <s:color name="SubtleEmphasisBackground" value="C6EFEFEF" /> <s:color name="TopBarText" value="666666" /> <s:color name="TopBarBackground" value="C6EFEFEF" /> <s:color name="TopBarHoverText" value="333333" /> <s:color name="TopBarPressedText" value="333333" /> <s:color name="HeaderText" value="444444" /> <s:color name="HeaderSubtleText" value="777777" /> <s:color name="HeaderDisableText" value="B1B1B1" /> <s:color name="HeaderNavigationText" value="666666" /> <s:color name="HeaderNavigationHoverText" value="0072C6" /> <s:color name="HeaderNavigationPressedText" value="004D85" /> <s:color name="HeaderNavigationSelectedText" value="0072C6" /> <s:color name="HeaderLines" value="ABABAB" /> <s:color name="HeaderStrongLines" value="92C0E0" /> <s:color name="HeaderAccentLines" value="2A8DD4" /> <s:color name="HeaderSubtleLines" value="C6C6C6" /> <s:color name="HeaderDisabledLines" value="E1E1E1" /> <s:color name="HeaderDisabledBackground" value="FDFDFD" /> <s:color name="HeaderFlyoutBorder" value="D1D1D1" /> <s:color name="HeaderSiteTitle" value="262626" /> <s:color name="SuiteBarBackground" value="0072C6" /> <s:color name="SuiteBarHoverBackground" value="4B9BD7" /> <s:color name="SuiteBarText" value="FFFFFF" /> <s:color name="SuiteBarDisabledText" value="C6C6C6" /> <s:color name="ButtonText" value="444444" /> <s:color name="ButtonDisabledText" value="B1B1B1" /> <s:color name="ButtonBackground" value="FDFDFD" /> <s:color name="ButtonHoverBackground" value="E6F2FA" /> <s:color name="ButtonPressedBackground" value="92C0E0" /> <s:color name="ButtonDisabledBackground" value="FDFDFD" /> <s:color name="ButtonBorder" value="ABABAB" /> <s:color name="ButtonHoverBorder" value="92C0E0" /> <s:color name="ButtonPressedBorder" value="2A8DD4" /> <s:color name="ButtonDisabledBorder" value="E1E1E1" /> <s:color name="ButtonGlyph" value="666666" /> <s:color name="ButtonGlyphActive" value="444444" /> <s:color name="ButtonGlyphDisabled" value="B1B1B1" /> <s:color name="TileText" value="ffffff" /> <s:color name="TileBackgroundOverlay" value="99000000" /> <s:color name="ContentAccent1" value="9BC2E6" /> <s:color name="ContentAccent2" value="F4B084" /> <s:color name="ContentAccent3" value="A9D08E" /> <s:color name="ContentAccent4" value="FFD966" /> <s:color name="ContentAccent5" value="f25500" /> <s:color name="ContentAccent6" value="ffc04d" /></s:colorPalette> 解决方案 Hi,If you want to change the color of calendar from white to black, as a workaround, we can add the following CSS style into a script editor web part in the calendar view page to achieve it.<style type="text/css">.ms-acal-sdiv, .ms-acal-mdiv, .ms-acal-ddiv,.ms-acal-sdiv a, .ms-acal-mdiv a, .ms-acal-ddiv a{ color: black !important;}</style>Best Regards,Dennis 这篇关于日历的字体颜色更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-31 08:32