Skip to main content
Srinivas Ramanujam (Salesforce) ๋‹˜์ด #LWC Component์— ์งˆ๋ฌธํ–ˆ์Šต๋‹ˆ๋‹ค

Adding ,

 newDiv1Text += "<span class='highlightRed'>" + div1TextSplitted[wordNumber1] + "</span> ";

span class is not applying the css class to the text.

 

but ,

  newDiv1Text += "<span style = 'background-color :red'>" + div1TextSplitted[wordNumber1] + "</span> ";

is working .

 

I need the css to be applied to the text by not hardcoding. Please share your inputs 

 

#Salesforce Developer

๋‹ต๋ณ€ 1๊ฐœ
0/9000