Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question css3 nth-of-type under IE8

    I want to use css nth-of-type,like follows:
    Code:
    <tr>
     <th>Item</th>
     <th>Price</th>
     <th>Quantity</th>
     <th>Total</th>
    </tr>
    <tr>
      <td>Coffee mug</td>
      <td>$10.00</td>
      <td>5</td>
      <td>$50.00</td>
    </tr>
    <tr>
      <td>Polo shirt</td>
      <td>$20.00</td>
      <td>5</td>
      <td>$100.00</td>
    </tr>
    css file
    Code:
    tr:nth-of-type(even){
      background-color:#F3F3F3;
    }
    tr:nth-of-type(odd){
      background-color:#ddd;
    }
    I will use IE8,Firefox,Opera to visit above page,I know IE8 can't support nth-of-type,but Firefox and Opera support it.I want to know how to modify above code to make IE8,Firefox and Opera all work well?

    Thanks

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    Check if following link is useful for you:

    http://docs.jquery.com/Tutorials:Zeb...ping_Made_Easy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •