常用CSS样式效果汇总

2016-02-19 19:42 13 1 收藏

每个人都希望每天都是开心的,不要因为一些琐事扰乱了心情还,闲暇的时间怎么打发,关注图老师可以让你学习更多的好东西,下面为大家推荐常用CSS样式效果汇总,赶紧看过来吧!

【 tulaoshi.com - Web开发 】

  虽然CSS样式的学习需要我们动手多实践,需要多做案例,思致思考,但有时候注意资料的收集与整理也是非常重要的,在实际开发中往往会起到事半功倍的效果。在www.phpq.net的文档中,也提供了丰富的内容。下面一些关于按钮、文本框、表单的常用CSS样式。大家可以参考。

  一、按钮样式

.buttoncss {
  font-family: "tahoma", "宋体"; /*www.phpq.net*/
  font-size:9pt; color: #003399;
  border: 1px #003399 solid;
  color:#006699;
  border-bottom: #93bee2 1px solid;
  border-left: #93bee2 1px solid;
  border-right: #93bee2 1px solid;
  border-top: #93bee2 1px solid;
  background-image:url(../images/bluebuttonbg.gif);
  background-color: #e8f4ff;
  cursor: hand;
  font-style: normal ;
  width:60px;
  height:22px;
}

  二、蓝色按钮

.bluebuttoncss {
  font-family: "tahoma", "宋体"; /*www.phpq.net*/
  font-size: 9pt; color: #003366;
  border: 0px #93bee2 solid;
  border-bottom: #93bee2 1px solid;
  border-left: #93bee2 1px solid;
  border-right: #93bee2 1px solid;
  border-top: #93bee2 1px solid;*/
  background-image:url(../images/blue_button_bg.gif);
  background-color: #ffffff;
  cursor: hand;
  font-style: normal ;
}

  三、红色按钮

.redbuttoncss {
  font-family: "tahoma", "宋体"; /*www.phpq.net*/
  font-size: 9pt; color: #0066cc;
  border: 1px #93bee2 solid;
  border-bottom: #93bee2 1px solid;
  border-left: #93bee2 1px solid;
  border-right: #93bee2 1px solid;
  border-top: #93bee2 1px solid;
  background-image:url(../images/redbuttonbg.gif);
  background-color: #ffffff;
  cursor: hand;
  font-style: normal ;
}

  四、选择按钮

.selectbuttoncss{
  font-family: "tahoma", "宋体"; /*www.phpq.net*/
  font-size: 9pt; color: #0066cc;
  border: 1px #93bee2 solid;
  border-bottom: #93bee2 1px solid;
  border-left: #93bee2 1px solid;
  border-right: #93bee2 1px solid;
  border-top: #93bee2 1px solid;
  background-image:url(../images/blue_button_bg.gif);
  background-color: #ffffff;
  cursor: hand;
  font-style: normal ;
} 

  五、绿色按钮

.greenbuttoncss {
  font-family: "tahoma", "宋体"; /*www.phpq.net*/
  font-size: 9pt; color: #0066cc;
  border: 1px #93bee2 solid;
  border-bottom: #93bee2 1px solid;
  border-left: #93bee2 1px solid;
  border-right: #93bee2 1px solid;
  border-top: #93bee2 1px solid;
  background-image:url(../images/greenbuttonbg.gif);
  background-color: #ffffff;
  cursor: hand;
  font-style: normal ;
}

  六、图像按钮

.imagebutton{
  cursor: hand;  /*改变鼠标形状 www.phpq.net*/
}

  七、页面正文

body {
  scrollbar-face-color: #ededf3;
  scrollbar-highlight-color: #ffffff;
  scrollbar-shadow-color: #93949f;
  scrollbar-3dlight-color: #ededf3;
  scrollbar-arrow-color: #082468;
  scrollbar-track-color: #f7f7f9;
  scrollbar-darkshadow-color: #ededf3;
  font-size: 9pt; /*www.phpq.net*/
  color: #003366;
  overflow:auto;
}
td { font-size: 12px }
th {
  font-size: 12px;
}

  八、下拉选择框

select{
  border-right: #000000 1px solid;
  border-top: #ffffff 1px solid;
  font-size: 12px; /*www.phpq.net*/
  border-left: #ffffff 1px solid;
  color:#003366;
  border-bottom: #000000 1px solid;
  background-color: #f4f4f4;
}

  九、线条文本编辑框

.editbox{
  background: #ffffff;
  border: 1px solid #b7b7b7;
  color: #003366;
  cursor: text;
  font-family: "arial";
  font-size: 9pt;
  height: 18px;
  padding: 1px; /*www.phpq.net*/
}

  十、多行文本框

.multieditbox{
  background: #f8f8f8;
  border-bottom: #b7b7b7 1px solid;
  border-left: #b7b7b7 1px solid;
  border-right: #b7b7b7 1px solid;
  border-top: #b7b7b7 1px solid;
  color: #000000;
  cursor: text;
  font-family: "arial";
  font-size: 9pt;
  padding: 1px; /*www.phpq.net*/
}

  十一、阴影风格的表单

.shadow {
  position:absolute;
  z-index:1000;
  top:0px;
  left:0px; /*www.phpq.net*/
  background:gray;
  background-color:#ffcc00;
  filter : progidximagetransform.microsoft.dropshadow(color=#ff404040,offx=2,offy=2,positives=true);
}

  十二、只显一条横线的输入框

.logintxt{
  border-right: #ffffff 0px solid;
  border-top: #ffffff 0px solid;
  font-size: 9pt; /*www.phpq.net*/
  border-left: #ffffff 0px solid;
  border-bottom: #c0c0c0 1px solid;
  background-color: #ffffff
}

  十三、没有边框的输入框

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/webkaifa/)

.noneinput{
  text-align:center;
  width:99%;height:99%;
  border-top-style: none;
  border-right-style: none;
  border-left-style: none;
  background-color: #f6f6f6;
  border-bottom-style: none;
}

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/webkaifa/)

来源:https://www.tulaoshi.com/n/20160219/1621591.html

延伸阅读
标签: Web开发
CSS样式表实现效果很好的分页效果,在学习编程过程中由于文章内容比较多或者列表内容比较多,我们都需要分页!那么你想不想要一种好的分页效果呢?这个是我认为比较容易使用,同时编程方面也挺容易实现的分页,就是以10页为基础,然后上十页和下十页,因为很少有人有兴趣会去看10页甚至20页以后的内容。 !DOCTYPE html PUBLIC "-//W3C//DT...
标签: Web开发
font版本:CSS1/CSS2 兼容性:IE4+ NS4+ 继承性:有 语法: font : font-style || font-variant || font-weight || font-size || line-height || font-family font : caption | icon | menu | message-box | small-caption | status-bar 取值: font-style : CSS1 请参阅 font-style 属性 font-variant : CSS1 请参阅 font-vari...
标签: Web开发
前面我们了解了CSS的语法,但要想在浏览器中显示出效果,就要让浏览器识别并调用。当浏览器读取样式表时,要依照文本格式来读,这里介绍四种在页面中插入样式表的方法:链入外部样式表、内部样式表、导入外表样式表和内嵌样式。 1. 链入外部样式表 链入外部样式表是把样式表保存为一个样式表文件,然后在页面中用link标记链接到...
标签: Web开发
color版本:CSS1 兼容性:IE4+ NS4+ 继承性:有 语法: color : color 取值: color : 指定颜色。请参阅 颜色单位 和 附录:颜色表 说明: 检索或设置对象的文本颜色。无默认值。 注意,用颜色名称指定 color 不被一些浏览器接受。但使用 RGB 值指定颜色能被所有里浏览器识别并正确显示。 此属性对于 currentStyle 对象而言是只...
Dust-Me selectors Dust-Me是一个很有用也很好用的Firefox插件,它可以分析到你的页面中调用的所有CSS文件并分析那些在页面中没有被用到。 支持本地和远程样式文件,包括使用link标签、?xml-stylesheet?处理指令、@import语句等方式引入的样式文件;(但是不支持页面中的style块和内联样式)支持IE条件注释中引入的样式文件;可以检查一个页面...

经验教程

46

收藏

95

精华推荐

常用CSS缩写语法

常用CSS缩写语法

anokqavv055460

CSS常用技巧介绍

CSS常用技巧介绍

沸腾的泡泡儿

常用的CSS知识

常用的CSS知识

迷恋那坏笑

微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部