Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Sign in to follow this  
Anastasis

If statment σε CSS

Recommended Posts

Το να χρησιμοποιείτε διαφορετικά CSS properties σε διαφορετικούς browsers είναι κάτι πολύ σύνηθες αφου δεν έχουνε την ίδια χρήση.

Conditional-CSS επιτρέπει να χρησιμοποιείτε το if statment για να απευθυνθείτε σε έναν μόνο browser ή σε ένα group απο browsers


Conditional CSS
Features of Conditional-CSS:

* Target CSS to any web-browser
* Streamline maintenance of your CSS files
* Optimise your CSS
* Work around those annoying little CSS bugs
* Automatic expansion and inclusion of @import statements
* It’s free and open source!


 

κώδικας:
# /* Conditional-CSS example */ 
 a.button_active, a.button_unactive { 
   display: inline-block; 
   [if lte Gecko 1.8] display: -moz-inline-stack; 
   [if lte Konq 3.1] float: left; 
   height: 30px; 
   [if IE 5.0] margin-top: -1px; 
     
   text-decoration: none; 
   outline: none; 
   [if IE] text-decoration: expression(hideFocus='true'); 
 }



Website: http://www.conditional-css.com/
Demo: http://www.conditional-css.com/demo/
Download: http://www.conditional-css.com/download

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×