A small CSS problem _ basic Tutorial

Source: Internet
Author: User
Let me ask you a question.
I want the following table to class= a class name from table to achieve my underlying effect
Is that I want to define a class in CSS, put the cellspacing=1 bgcolor= #D0DDE5 and TD in the table
Bgcolor= #FFFFFF are all written into a class of CSS, and I'll just use the table class to implement it,
Please teach me.
<table width= "100%" cellspacing= "1" bgcolor= "#D0DDE5" > <tr> <td bgcolor= "#FFFFFF" > I want to put the C in the table Ellspacing=1 bgcolor= #D0DDE5 and TD bgcolor= #FFFFFF are written in a CSS class, how to write </td> </tr> </table>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

<style type= "Text/css" > tablecss{border:1px solid #D0DDE 5; } </style> <table width= "100%" class= "Tablecss" > <tr> <td bgcolor= "#FFFFFF" > I want to put the Cellspacing=1 bgcolor= #D0DDE5 and TD bgcolor= #FFFFFF are written in a class of CSS, how to write </td> </tr> </TABLE&G T
[ctrl+ A Select all Note: If you need to introduce external JS need to refresh to execute the

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.