문제

I have created a web page and send this page by email on Gmail. On Gmail it doesn't pick up any css classes there, but when i send this email on yahoo or any other professional email provider, it is working very fine.

I am using this css class:

   .tb_head
    {
        background-color: #da2526;
        border: 1px solid #71250a;
        border-top: 0;
        color: #fff;
        text-align: left;
        padding: 5px 8px;
    }

    <HeaderStyle CssClass="tb_head" />
    <ItemStyle CssClass="tb_cell" />

These classes are embedded inside the page.

And it render on the gmail as:

<th scope="col">Location</th>

Same case for the table rows...

Can anyone help me?

도움이 되었습니까?

해결책

You should take a look at this post. I think it has the answers you are looking for.

Why is Gmail blocking CSS in emails?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top