Conas Athraigh an Dath Cúlra na WebPart Teideal

Hey Guys,
Fuair ​​mé ó riachtanas an gnó a athrú ar an dath Cúlra ar an teideal WebPart do As webparts Bosca. Ansin, thosaigh mé ag breathnú ar CSS Fuair ​​mé an méid seo a leanas CSS rang a ceannas ceann an stíl WebPart Teideal.

.ms-WPHeader TD
{
teorann-bun:0px soladach # 4e7cb7;
teorann-collapse:tubaiste;
}

Athraigh rang seo de réir do riachtanas ansin tá tú ag déanamh….

.ms-WPHeader TD{
airde:40px;
cúlra-dath: #0174DF;
font-size: níos mó;
font-mheáchan: trom;
teorann-bun:0px soladach # 4e7cb7;
teorann-collapse:tubaiste;
}

1 comment to How to Change the Background Color of WebPart Title

  • noreply@blogger.com (Saurabh)

    Dia duit Uday…..

    I am adding webparts on my Page Programatically……so
    System.Web.UI.WebControls.WebParts.WebPart HelloWP = new Hello.HelloWebpart;
    HelloWP.Title = “My Webpart”;

    mgr.AddWebPart(HelloWP, “Left”, 0);
    (mgr is my WebpartManager)

    now how can i set the CSS to my webpart….???

Fág Freagra

Is féidir leat úsáid a bhaint na clibeanna HTML

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>