日期:2014-05-16  浏览次数:20819 次

【CSS样式】鼠标经过若隐若现效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
#navigation{
   width:100px;
   hieght:100px;
   text-align:center;
   font-size:24px;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-transition: all 0.4s ease-out;
  -moz-transition: all 0.4s ease-out;
  -o-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  padding: 18px 20px;
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  background:#69C;
  color:#FFF;
}
#navigation:hover{
background:#930;
}
</style>
</head>
<body>
<div id="navigation">隐藏ytutyuty</div>
</body>
</html>
1 楼 dengbenlong 23 小时前  
text-transform: uppercase
text-transform: lowercase
text-transform: capitalize
第1个会把文字变成全大写
第2个变成全小写 第3个变成首字母大写
2 楼 dengbenlong 23 小时前  
placeholder="Search by Keyword"

select样式优化:
<select name="" style="width:220px;line-height:30px;display:inline-block;height:30px;border: 1px solid #ccc;padding: 4px

6px;margin-bottom: 10px;font-size: 14px;line-height: 20px;
color: #242424;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;vertical-align:

middle;"><option>asdasdasd</option></select>
3 楼 dengbenlong 23 小时前  
input框获取焦点时边框蓝色:
input{border:1px solid #ccc;}
input:focus {
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
}
4 楼 dengbenlong 23 小时前  
按钮 transition: all 0.1s ease-out;
5 楼 dengbenlong 23 小时前  
input transition: all 0.2s ease-out;