w3School首次学习---Day01【CSS】

    1、给图像或其他元素添加"alt"属性,来提供一条相对应的文字描述。  eg:<img src="xxx.jpg"   alt="图片描述" />

    2、为所在页面的head元素内添加字符集设置描述:<meta http-equiv="Content-Type" content="text/html;charset=xxx" />

    3、id选择器:#idName ;类选择器:.className。  派生选择器:#idName h2{......}

    4、IE7和IE8中支持属性选择器:eg:[title]{color:blue;}

    5、属性和值选择器:[title=hello world]{color:red}  为title值为hello world的所有应用该样式

                                          [title~=hello]{color:red}   为title的值中包含单独hello的对象应用此样式。

    6、input[type="text"]{......}

          input[type="button"]{......}

    7、HTML中的<hr /> 是用来分割上下结构的“水平线”。

    8、将css文件引入html中的用法:<head> <link rel="stylesheet" type="text/css"  href="xxx.css" />   </head>  外部样式表

           内部样式表:<head> <script  type="text/css"> ...... </script> </head>

    9、

                     

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值