Q:
How to color the text in the grid
Try:
http://dev.sencha.com/playpen/docs/output/Ext.grid.TableGrid.html
http://www.iteye.com/problems/19221
A:
http://www.w3school.com.cn/tiy/t.asp?f=jquery_selector_class
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".intro").css("background-color","#B2E0FF"); var t = $(".intro").html();//alert(t); var i = t.indexOf('is');//alert(i); if(i!=0){ t = t.replace('is','<font color="red">is</font>');alert(t); $(".intro").html(t); } }); </script> </head> <body> <html> <body> <h1>Welcome to My Homepage</h1> <p class="intro">My name is Donald</p> <p>I live in Duckburg</p> <p>My best friend is Mickey</p> <div id="choose"> Who is your favourite: <ul> <li>Goofy</li> <li>Mickey</li> <li>Pluto</li> </ul> </div> </body> </html> </body> </html>