码迷,mamicode.com
首页 > Web开发 > 详细

HTML+css基础认识

时间:2014-05-20 09:58:52      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:style   c   tar   ext   color   a   

标签:<div><span                                                                              css属性:width,height,padding:上下 左右; margin:上 右 下 左;position:absolute/relative/fixed/static;

           <p>                                                                                css属性:font-family,font-size,font-weight,font-style,color,text-decoration,text-align:justify;letter-spacing,word-spacing,

           <a href=" " target="_blank">                                                    css属性:color,text-decoration,

           <img src=" " alt=" " >                                                               css属性:padding,margin,vertical-align:text-bottom/text-top/middle;

           <ul><li> <ol><li>                                                                      css属性:float,display:block;background-position,list-style-type,list-style-image:url();

           <table><caption><thead><tbody><tfoot><col><tr><th><td>   css属性:border-collapse:collapse; table-layout:fixed; vertical-align:middle;

           <iframe src=" ">

           <input type=" " name=" " value=" " align=" ">                           css属性:back-ground-color:transparent;

                       type:text,radio,checkbox,password,submit,reset,image,textarea,number,range,color,

                  <select name=" "><option value=" ">

伪元素:p:first-letter{} div:first-child{} a:link{} a:visited{} a:hover{} a:focus{} a:active{}

属性选择器:img[width]{}

兄弟选择器:h1+p{} (选择所有紧跟在一个<h1>后的<p>元素)

派生选择器:div#greentea>blockquote p:first-line{}

图片替换:<span>Head Line</span>

                 span{display:none;}

                 body{background-image:url();

                           background-repeat:no-repeat;}

滑动门:<li><a href="#"><strong>Home</strong></a></li>

              #menu ul li a{display:block;

                                   line-height:35px;

                                   color:#ddd;

                                   text-decoration:none;

                                   padding:0 0 0 14px;}

            #menu ul li a:hover{color:#fff;

                                           background:url() no-repeat right top;}

           #menu ul li a strong{display:block;

                                           padding:0 14px 0 0;}

            (IE中存在bug需增加#menu ul li a{float:left;})

 

 

 

HTML+css基础认识,布布扣,bubuko.com

HTML+css基础认识

标签:style   c   tar   ext   color   a   

原文地址:http://www.cnblogs.com/happy-blo/p/3737721.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!