Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Set background colour of single column in message list

  • 1 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi James

more options

I'd like to be able to customise the background colour of a single column in the messages list, such that I can colour code emails that have been received from different accounts. Is this possible?

I've currently been able to colour code the whole row based on a tag that I apply for each account using the following code in the userChrome.css file:

/*Outlook*/
#threadTree > treechildren::-moz-tree-row(Toutlook){
  background-color: #157cc4  !important;
}
#threadTree > treechildren::-moz-tree-cell-text(Toutlook){
  color: white !important;
}
#threadTree > treechildren::-moz-tree-row(Toutlook, selected){
  background-color: #E07D52 !important;
}
#threadTree > treechildren::-moz-tree-cell-text(Toutlook, selected){
  color: #157cc4 !important;
}

and similar for all the other tags..

Is there any way to customise this further to only apply to one column in the list (e.g. the Account column) rather than colouring the whole row?

I'd like to be able to customise the background colour of a single column in the messages list, such that I can colour code emails that have been received from different accounts. Is this possible? I've currently been able to colour code the whole row based on a tag that I apply for each account using the following code in the userChrome.css file: <pre> /*Outlook*/ #threadTree > treechildren::-moz-tree-row(Toutlook){ background-color: #157cc4 !important; } #threadTree > treechildren::-moz-tree-cell-text(Toutlook){ color: white !important; } #threadTree > treechildren::-moz-tree-row(Toutlook, selected){ background-color: #E07D52 !important; } #threadTree > treechildren::-moz-tree-cell-text(Toutlook, selected){ color: #157cc4 !important; } </pre> and similar for all the other tags.. Is there any way to customise this further to only apply to one column in the list (e.g. the Account column) rather than colouring the whole row?

Giải pháp được chọn

Solved it.

Instead of using treechildren::-moz-tree-row I instead used treechildren::-moz-tree-cell with the property "accountCol" set in addition to the property relating to the Tag, in this case "Toutlook"

/*Outlook*/
#threadTree > treechildren::-moz-tree-cell-text(Toutlook){
  color: #157cc4 !important;
}
#threadTree > treechildren::-moz-tree-cell(accountCol,Toutlook){
  background-color: #157cc4 !important;
}
#threadTree > treechildren::-moz-tree-cell-text(accountCol,Toutlook){
  color: white !important;
}
#threadTree > treechildren::-moz-tree-cell(Toutlook, selected){
  background-color: #157cc4 !important;
}
#threadTree > treechildren::-moz-tree-cell-text(Toutlook, selected){
  color: white !important;
}
Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (1)

more options

Giải pháp được chọn

Solved it.

Instead of using treechildren::-moz-tree-row I instead used treechildren::-moz-tree-cell with the property "accountCol" set in addition to the property relating to the Tag, in this case "Toutlook"

/*Outlook*/
#threadTree > treechildren::-moz-tree-cell-text(Toutlook){
  color: #157cc4 !important;
}
#threadTree > treechildren::-moz-tree-cell(accountCol,Toutlook){
  background-color: #157cc4 !important;
}
#threadTree > treechildren::-moz-tree-cell-text(accountCol,Toutlook){
  color: white !important;
}
#threadTree > treechildren::-moz-tree-cell(Toutlook, selected){
  background-color: #157cc4 !important;
}
#threadTree > treechildren::-moz-tree-cell-text(Toutlook, selected){
  color: white !important;
}