Beginners + CSS DIV attention to the points that matter

Related Tags:

  1, usually Padding the default value is 0, the background-color default value is transparent.    However, in different browsers default value may be different.    If fear of a conflict, in the style sheet can be a first definition of the beginning of all the elements of Margin and padding value to 0, like so: 
  * ( 
  Margin: 0; 
  Padding: 0; 
  ) 
  2, a label can be a number of class definition.    For example: We have two first definition of the pattern, a pattern Background # 666; second form 10 px borders. 
  . One (width: 200px; background: # 666;) 
  . Two (border: 10px solid # F00;) 
  In the page code, we can call this 
  <div Class="one two"> </ div> 
  3, in order to save bytes, I propose not to quote the background picture path, because quotes are not necessary.    For example: 
  Background: url ( "images /***. gif") # 333; 
  Can be written as 
  Background: url (gif images /***.) # 333; 
  If you add quotes, but will lead to some wrong browser 
////////////////////////////////
  After the supplementary 




Related articles:

W3C school HTML help guide CHM
  CHM File Download    Why is there this Guide    I started learning from the 1998 HTML, and at that time the feeling is very curious, and even some simple statements can be made vivid effect.    At that time seems to be the only domestic Tsinghua Library Guide t...
Entrepreneurial skills: entrepreneurs how to find venture capital
  Today, more and more low threshold of entrepreneurship, but also the difficulty of entrepreneurship growing, and more and more competitors, and make not so easy.    As an entrepreneur, you need to invest people's attention, and you hope that his eye stays in your body 30 second...
! Important and (space )/**/: a combination of skills and other
  For the IE box model of the crack -    IE box model-this notorious bug exists in every IE6/Win the previous version, this insect released until tantak most widely circulated that only began to be tame hack    Http://www.tantek.com/CSS/Examples/boxmodelhack.html  &n...
DIV achieve a pop-up window
<html> <head>   <title> Div_xWin </ title>    <meta Http-equiv="Content-Type" content="text/html; charset=gb2312">    <style Type='text/css'>    <! --    Body (font-size: 12px;)&nbs...
? BCSS §¤ Q
  / / Ą ͬ ʹ ò ͬ ɫ º    / / Ǣ º url ߡ Ȼ Çcookies ֵ    / / Äurl ִ ȡ ׃ ֵ    Function GetQueryValue (sorStr, panStr)    (    Var vStr = "";&nbs...