Sa lang ha mi da

you were my everyting

css学习_输入框的激活效果

实现的代码如下:

/* 美化输入框和文字框 */
input, textarea{
border-width: 1px; /*边框宽1像素*/
border-style: solid; /*边框样式为实线*/
border-color: #CCC #EEE #EEE #CCC; /*边框颜色,表现为凹陷效果*/
background-color: #FCFCFC; /*背景色*/
}

/* 输入框激活和聚焦时的效果 */
input:hover,input:focus{
background: #fff9ed;/*背景色*/
}

如果你仅仅想让Blog搜索框实现这样的效果的话,只需加入下面的代码:

#searchbox {
border-width: 1px;
border-style: solid;
border-color: #CCC #EEE #EEE #CCC;
background-color: #FCFCFC;
}

#searchbox:hover,#searchbox:focus{
background: #fff9ed;
}

注意:IE6无法显示这种效果

css学习_链接的流动下划线效果css布局:一行三列

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

February 2012
S M T W T F S
January 2012March 2012
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29