Learn how to use CSS style preferences to control how Dreamweaver writes the code that defines CSS styles.

CSS style preferences control how Dreamweaver writes the code that defines CSS styles. CSS styles can be written in a shorthand form that some people find easier to work with. Some older versions of browsers, however, do not correctly interpret the shorthand.

  1. Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh) and from the Category list select CSS Styles.
  2. Set the CSS style options you want to apply:

    When Creating CSS Rules Use Shorthand For

    Lets you select which CSS style properties Dreamweaver writes in shorthand.

    When Editing CSS Rules Use Shorthand

    Controls whether Dreamweaver rewrites existing styles in shorthand.

    Select If Original Used Shorthand to leave all styles as they are.

    Select According to Settings Above to rewrite styles in shorthand for the properties selected in Use Shorthand For.

    CSS prefixes

    Prefixed styles are added for gradients for the selected browsers.

  3. Click OK.

Dette arbejde har licens under en Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Opslag på Twitter™ og Facebook er ikke omfattet af vilkårene for Creative Commons.

Juridiske meddelelser   |   Politik for beskyttelse af personlige oplysninger online