2014年10月15日

   渐变色(例子):/*1属性:渐变角度  2属性:颜色+空格+纯色的长度(百分比、px)。。*/
  /*background:-webkit-linear-gradient(top right,red 50px,yellow);*/
  /*background:-webkit-linear-gradient(-135deg,red 50px,yellow);*/
  /*最简写法*/
  /*background:-moz-linear-gradient(red,yellow);  */
  /*rgba中的a指的是透明度*/
  /*background:-webkit-linear-gradient(left top,rgba(160,232,10,1),rgba(3,188,250,0.5)); */
  /*background:-webkit-linear-gradient(-135deg,rgba(160,232,10,1),rgba(3,188,250,0.5)); */
  /*可以增加多个颜色,注意后面的百分比>前面的百分比*/
  /*background: -webkit-radial-gradient(#eee 5px,green 15px,#faa 20px,#000 50px,red 55px);
  border-radius: 100%;*/
  /*重复的线性变换*/
  background:-webkit-linear-gradient(red,yellow,red,green);
 }
  边框图(例子):border-image: url(11.jpg) 30 30 30 30 repeat;
  选定input后出现的边框:outline:none
  限制input文字的长度:maxlenth
  去<ul>的圆点:ul(list-style:none)
  输入可消失:placeholder
  curson:pointer
  定义索引相同li中的一个:nth-child

posted @ 2014-10-15 18:49  浅微  阅读(124)  评论(0编辑  收藏  举报