CSS cascading style of learning [1]

Related Tags:

  css style entry 

  1. Connected to an external style sheet 

  Will be an external style sheets into html pages using the following format: 

  <LINK REF= HREF= TYPE= MEDIA=> 

  <LINK> Marker be placed on the head of the document. 

  REF attribute is used to define which of the documents and connect the link between the HTML documents.    REL = StyleSheet designated the preferred form of a fixed.    In the style sheet fixed pattern was activated always be applied.    Masthead not more than one designated the preferred style. 

  REL through interactive style = "Alternate StyleSheet" pointed out.    The third example <LINK> marked an interactive style definition, a user could choose to replace the preferred style sheet. 

  Note now the browser generally lack the ability to choose interactive style. 

   
  <LINK REL=StyleSheet HREF="tables.css" TITLE="Contemporary"> 
  <LINK REL=StyleSheet HREF="forms.css" TITLE="Contemporary"> 

  In this example, the combination of the three style sheet into a "Contemporary" style, as a preferred style sheet is applied.    To many style sheet portfolio into a single format, and each must use the same style sheet TITLE. 

  TYPE optional attributes for the designated media types - text / css is a Cascading Style Sheets - allows browsers ignore them do not support the type of style sheet 

  There is also a marked <LINK> optional MEDIA attributes for the designated style sheet to accept the media or the media.    Permit values 

  •   Screen (default value), submitted to the computer screen; 
  •   Print output to the printer; 
  •   Projection, submitted to the projector; 
  •   Aural, speakers; 
  •   Braille, submitted to the Braille tactile sensing equipment; 
  •   Tty, telex typewriter (using a fixed font); 
  •   Tv, television; 
  •   All, all output devices. 

  When the pattern was applied to a lot of web pages, a Waibuyangshibiao is ideal.    Masthead Waibuyangshibiao use the entire site can be changed only by changing the appearance of a document.    Similarly, most browsers will preserve Waibuyangshibiao in the buffer zone, if the style sheet in the buffer zone to avoid the Display of Web delay. 

  2. Embedded in a style sheet can use a style sheet STYLE Element embedded in the document: 

  A style sheet can be used STYLE element embedded in the document: 

  <STYLE TYPE="text/css" MEDIA=screen> 
  <! -- 
  body (background: url (foo.gif) red; color: black) 
  P EM (background: yellow; color: black) 
  . Note (margin-left: 5em; margin-right: 5em) 
-->
  </ STYLE> 
  STYLE element on the part of a document HEAD.    TYPE necessary attributes for the designated media types, LINK element is the same.    Similarly, TITLE and MEDIA STYLE attribute can also use the designation. 

  Old version of the browser, and does not recognize STYLE element will be a part of its business as usual as BODY display its contents, style sheets so that they are visible to users.    To prevent this, STYLE elements of SGML content to include a footnote (<!-- comment - ") on the inside, like these as examples. 

  Embedded style sheet can be used when a document has a unique style of the time (that is, only a few pages need such a pattern).    If multiple documents are to use the same style sheet, then Waibuyangshibiao would be more applicable.    (When a site requires a unified style, used to connect an external style sheet (one way) more convenient and better optimize the speed and website maintenance) 





Related articles:

CSS easily be forgotten overflow: visible
  Yesterday need to do a certain functional content automatically extendable under textbox size after colleagues recommend the use of overflow: visible, really is a good ah.    Overflow: visible    Shear is not the content of the added rolling.    If the explici...
Fireworks production Fine PC icon
  First奉上Drawings:    Basic steps:    1. Drawing a rectangle, and selection tools through some adjustment nodes.    To increase the three-dimensional effect, each angle through the pen tool for the two additional nodes    2. Rectangular add to the gra...
Web Design, from the beginning of CSS. I dedicated a contribution to the CSS
  / * CSS Document * /    <style Type="text/css">    <! --    Body, td, th (    Font-size: 9pt;    Color: # 000000;    Line-height: 13pt    )    Body (    Margin-left: 0px; ...
CSS Attributes
  Style label attribute style attribute description    Word-break wordBreak settings or access to the word-for-line, especially the target of a multi-language situation.    Text-indent textIndent settings or access to the Chinese version of Object indent.    Pad...
Qiaoqiao fatal personal website how to make money
  All the sites are now considering how to make money, personal website is no exception.    The first personal website may be motivated out of interest or a hobby, but over time, these will be of interest or hobbies for their own accumulated many resources, for example, significant n...