Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
230 views
in Technique[技术] by (71.8m points)

Changing the color of text from a page using CSS injector extensions

I wanted to configure a page with some colors for some text, but I only managed to change the color of the text for all or none at all.

I'm sorry as I am not a coder

When trying with selection from some Chrome extensions like stylebot or code cola, I got a CSS code like

oip-amount span span {
color: rgb(0, 255, 0)
}

That will change the color of all text using that, but I do not want to change ALL the text, just some of it for some of them.

The difference between them selecting the code of the text with ublock is like

move1 > td > .row > .col-lg-12 > .table > tbody > tr:nth-of-type(1) > .hidden-xs.sm-13.xs-0.text-right.col-amount > .visible-sm.visible-lg.visible-md > oip-amount > span > span

Then move2, move 3, move 4 for every one, and I just want to change the color for table 1 and 2.

But, it also changes the color for text that is inside things like

move0 > td > .row > .col-lg-12 > .table > tbody > tr:nth-of-type(1) > td.text-right.col-amount:nth-of-type(5) > ul > li:nth-of-type(1) > oip-amount > .red > span

How can I edit or change only the text I want and not all of them of color?

question from:https://stackoverflow.com/questions/66055505/changing-the-color-of-text-from-a-page-using-css-injector-extensions

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...