Chào mừng bạn đến blog Ynghialagi.com Trang Chủ

Table of Content

Bài đăng

Change font color in SharePoint list ~ Hướng dẫn FULL

Mẹo về Change font color in SharePoint list 2022


Pro đang tìm kiếm từ khóa Change font color in SharePoint list được Update vào lúc : 2022-12-12 13:31:13 . Với phương châm chia sẻ Thủ Thuật về trong nội dung bài viết một cách Chi Tiết 2022. Nếu sau khi tìm hiểu thêm tài liệu vẫn ko hiểu thì hoàn toàn có thể lại Comments ở cuối bài để Mình lý giải và hướng dẫn lại nha.


Note: This post applies to on-premise/server lists or O365 lists set to classic view. This will not work on modern views.


Nội dung chính


    Create the styleAdd the style to your list(s)Spread the word:

A little style on column header rows goes a long way. For example, just a background color and font adjustment can take your list from:


Before:


headerwithoutstyleheaderwithoutstyle


to
After:


headerstyleheaderstyle


Heres how you can apply your own styles to your list(s).



Create the style


Were simply going to add a CSS file to your Site Assets thư mục (Settings > Site Contents > Site Assets). You can do this any of three different ways:


    Download, then drag and dropthis file into your Site Assets thư mục within your browser, orCopy and paste the following script into a text file using notepad or a similar simple text editing program and save as headers.css (must have the .css extension in file name). Then drag and drop the file into Site Assets.Create a new CSS file within SharePoint Designer and save it to Site Assets as headers.css.

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters


Show hidden characters


<style>/*Choose your background color*/.ms-viewheadertrbackground:#00426A;/*Choose font style*/.ms-vh2-nofilter, .ms-vh2, a.ms-headerSortTitleLink font-weight:bold;color:white;font-size:1.05em;</style>view raw


headers


hosted with by GitHub


Change the colors and font style as needed and save again.


Add the style to your list(s)


Navigate to the list where youre adding the styleEdit page
chrome_2018-07-20_09-22-11chrome_2018-07-20_09-22-11Add a Web Part
chrome_2018-07-20_09-23-09chrome_2018-07-20_09-23-09Media and Content > Content Editor > Add
chrome_2018-07-20_09-23-35chrome_2018-07-20_09-23-35Edit Web Part
chrome_2018-07-20_09-23-54chrome_2018-07-20_09-23-54Type /siteassets/header.css in the link field
chrome_2018-07-20_09-24-30chrome_2018-07-20_09-24-30Expand Appearance and set Chrome State to Minimized and Chrome Type to None then click OK
chrome_2018-07-20_09-24-48chrome_2018-07-20_09-24-48Stop editing the page
chrome_2018-07-20_09-25-11chrome_2018-07-20_09-25-11


Thats it!


Want to take it a step further? Make your headers float/stick as you scroll!
2018-07-20_09-51-42.gif2018-07-20_09-51-42.gif


Heres how to make sticky/floating headersCopy the script from this post and paste it the top of the file you tải về in the sticky headers tutorialSearch for background-color: white; and replace it with the same background color your used in your styling above (#00426A; in my example)
floating modificationfloating modificationSave your changes to the downloaded file and follow the rest of the steps in the other post. Use the content editor youve already added in this post, replacing the /SiteAssets/headers.css line (since we added the script to top of the stickyheaders script) with the /SiteAssets/stickyheaders.js script which includes both.


Spread the word:


    Click to share on (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to print (Opens in new window)More
    Click to share on Pocket (Opens in new window)Click to share on Skype (Opens in new window)Click to email this to a friend (Opens in new window)

Like this:


Like Loading…


Related


Share Link Download Change font color in SharePoint list miễn phí


Bạn vừa Read tài liệu Với Một số hướng dẫn một cách rõ ràng hơn về Video Change font color in SharePoint list tiên tiến và phát triển nhất Chia Sẻ Link Cập nhật Change font color in SharePoint list Free.



Giải đáp vướng mắc về Change font color in SharePoint list


Nếu sau khi đọc nội dung bài viết Change font color in SharePoint list vẫn chưa hiểu thì hoàn toàn có thể lại phản hồi ở cuối bài để Tác giả lý giải và hướng dẫn lại nha

#Change #font #color #SharePoint #list

Đăng nhận xét