#image {/*css background */background-color:red; Background-image:url (3.jpg); Background-position:center/*30% 20%*//*30px 20px*/; Background-repeat:repeat-x/*repeat-x*/; background-size:80px 60px; /*background:red,url (3.jpg), center,no-repeat,80px 60px*/;} #text {/* text typesetting */text-align:center; Text-decoration:underline; Text-indent:2em; Word-spacing:0.5em; White-space:normal/*nowarp Prohibited Text line-wrapping * *; Direction:rtl; /* from right to Left */} #font {/* font */font-family:serif; Font-style:italic; font-size:15px; Font-weight:bold/*700*/;} /*-----Link-----*/a:link {color: #FF0000;} /* Non-visited link */a:visited {color: #00FF00;} /* The link that has been visited */a:hover {color: #FF00FF;} /* mouse pointer moves to the link */a:active {color: #0000FF;} /* links that are being clicked *//*-----Links-----*/ul {list-style-type:none;/* Remove list Item tags */list-style-image:url ('/i/eg_arrow.gif ')/ * Mark the image as a list item */}li{display:block;/* block-level element */}table, TD {BORDER:1PX solid #3581FF; padding:3px; /* margin is margin, the padding is the inner margin. When two properties occur at the same time, the margin is guaranteed first. */* Two outside the meeting will be merged to the margin, whichever is greater, whether it is margin-top and Margin-buttom meet or Margin-top and margin-top meet * * VERTICAL-ALIGN:BOTTOM; /* Vertical alignment */text-align:center;} #positive1 {position:relative; left:20px;} #positive2 {position:absolute; left:20px; top:100px; Z-index:-1; /* The default z-index is 0,-1 for the next layer in the default location */} #positive3 {position:fixed; left:20px;} The CSS style of the input {/* INP tag */font-size:3px;} [title]/* and above are different, this is the CSS style containing the tag of title */{font-size:3px;} img {height:100px; opacity:0.5;/* transparency */}p{max-height:10px;/* maximum height. The rest will be obscured by other elements. */}
CSS Learning Notes