给按钮添加css样式的方法:
添加方法:
1、.btn {BORDER-RIGHT: #7b9ebd 1px solid右边线
2、PADDING-RIGHT: 2px内边距 右
3、BORDER-TOP: #7b9ebd 1px solid上边线
4、PADDING-LEFT: 2px内边距 左
5、FONT-SIZE: 12px文字大小
6、BORDER-LEFT: #7b9ebd 1px solid左边线
7、CURSOR: hand鼠标移上去时,变成手形。
8、COLOR: black颜色黑 (表示文字颜色)
9、PADDING-TOP: 2px内边距 上
10、BORDER-BOTTOM: #7b9ebd 1px solid }底边线
扩展资料
CSS样式部分
大小 {font-size: 12px},x-large(特大) xx-small(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD
样式 {font-style: oblique}(偏斜体) italic(斜体) normal(正常)
行高 {line-height: normal}(正常) 单位:PX、PD、EM
粗细 {font-weight: bold}(粗体) lighter(细体) normal(正常)
变体 {font-variant: small-caps}(小型大写字母) normal(正常)
大小写 {text-transform: capitalize}(首字母大写) uppercase(大写) lowercase(小写) none(无)
修饰 {text-decoration: underline}(下划线) overline(上划线) line-through(删除线) blink(闪烁)
常用字体: (font-family)
"Courier New", Courier, monospace, "Times New Roman", Times, serif, Arial, Helvetica, sans-serif, Verdana
背景属性: (background)
色彩 {background-color: #FFFFFF}
图片 {background-image: url()}
重复 {background-repeat: no-repeat}
滚动 {background-attachment: fixed}(固定) scroll(滚动)
位置 {background-position: left}(水平) top(垂直)
字间距 {letter-spacing: normal} 数值 /*这个属性有用,多实践下*/
对齐 {text-align: justify}(两端对齐) left(左对齐) right(右对齐) center(居中)
以下是Photoshop基础篇视频教程,更多Photoshop视频教程请上:http://www.21kn.com/web/PhotoshopVideo/
第一章:photoshop7.0概述
1.1 概述
http://www.21kn.com/web/PhotoshopVideo/1637030771416370349499805.htm
1.2 基本界面
http://www.21kn.com/web/PhotoshopVideo/1653030771416530349572553.htm
2.1.1选区工具和移动工具
http://www.21kn.com/web/PhotoshopVideo/1656180771416561885603676.htm
2.1.2套锁工具和魔棒工具
http://www.21kn.com/web/PhotoshopVideo/1701000771417010098403620.htm
2.1.3裁切工具和切片工具组
http://www.21kn.com/web/PhotoshopVideo/1706230771417062341453407.htm
2.2.1修复工具组
http://www.21kn.com/web/PhotoshopVideo/1709050771417090564398921.htm
2.2.2画笔工具
http://www.21kn.com/web/PhotoshopVideo/17110607714171106929074.htm
2.2.3印章工具
http://www.21kn.com/web/PhotoshopVideo/1713540771417135411153534.htm
2.2.4记录工具
http://www.21kn.com/web/PhotoshopVideo/1716290771417162936250781.htm
2.2.5橡皮擦工具
http://www.21kn.com/web/PhotoshopVideo/1718250771417182510971930.htm
2.2.6填充工具
http://www.21kn.com/web/PhotoshopVideo/1003550771510035550860702.htm
2.2.7调焦工具
http://www.21kn.com/web/PhotoshopVideo/101913077151019137489878.htm
2.2.8色彩微调工具
http://www.21kn.com/web/PhotoshopVideo/1021330771510213321936383.htm
2.3.1路径组件绘制工具和路径选择工具
http://www.21kn.com/web/PhotoshopVideo/1023300771510233048561475.htm
2.3.2文字工具
http://www.21kn.com/web/PhotoshopVideo/1025300771510253088654834.htm
2.3.3矢量图象工具
http://www.21kn.com/web/PhotoshopVideo/1027130771510271354190197.htm
2.4.1注释工具
http://www.21kn.com/web/PhotoshopVideo/1029270771510292793404582.htm
2.4.2取样工具
http://www.21kn.com/web/PhotoshopVideo/1031210771510312195162530.htm
2.4.3导航工具
http://www.21kn.com/web/PhotoshopVideo/1033050771510330518834460.htm
2.5控制器
http://www.21kn.com/web/PhotoshopVideo/1036200771510362011591755.htm
第三章:文件菜单
http://www.21kn.com/web/PhotoshopVideo/1037580771510375895202435.htm
4.1编辑菜单(一)
http://www.21kn.com/web/PhotoshopVideo/1039460771510394628253880.htm
4.2编辑菜单(二)
http://www.21kn.com/web/PhotoshopVideo/1042230771510422369642717.htm
5.1图象的色彩模式
http://www.21kn.com/web/PhotoshopVideo/1044100771510441051667194.htm
5.2.1图象的色彩控制之色彩调整
http://www.21kn.com/web/PhotoshopVideo/1048270771510482791274833.htm
5.2.2色彩控制
http://www.21kn.com/web/PhotoshopVideo/1050250771510502581388146.htm
5.2.3色调运用
http://www.21kn.com/web/PhotoshopVideo/1051490771510514948997430.htm
5.3图象菜单
http://www.21kn.com/web/PhotoshopVideo/1053210771510532183440350.htm
6.1图层1
http://www.21kn.com/web/PhotoshopVideo/1054580771510545846893197.htm
6.2图层2
http://www.21kn.com/web/PhotoshopVideo/1056460771510564647668111.htm
6.3图层3
http://www.21kn.com/web/PhotoshopVideo/1101480771511014893069155.htm
6.4图层4
http://www.21kn.com/web/PhotoshopVideo/1103310771511033132046111.htm
7.1选区的基本操作和色彩范围
http://www.21kn.com/web/PhotoshopVideo/1105090771511050978707523.htm
7.2羽化、修改、变换选区
http://www.21kn.com/web/PhotoshopVideo/110639077151106394045466.htm
7.3载入存储选区
http://www.21kn.com/web/PhotoshopVideo/1107550771511075593143169.htm
8.1滤镜菜单
http://www.21kn.com/web/PhotoshopVideo/1109480771511094831175465.htm
8.2像素化滤镜
http://www.21kn.com/web/PhotoshopVideo/11115207715111152784111.htm
8.3.1扭曲滤镜1
http://www.21kn.com/web/PhotoshopVideo/1113550771511135559997990.htm
8.3.2扭曲滤镜2
http://www.21kn.com/web/PhotoshopVideo/1115490771511154957942256.htm
8.3.3扭曲滤镜3
http://www.21kn.com/web/PhotoshopVideo/1117280771511172886585709.htm
8.4杂色滤镜
http://www.21kn.com/web/PhotoshopVideo/1119090771511190937515946.htm
8.5.1模糊滤镜1
http://www.21kn.com/web/PhotoshopVideo/1120440771511204486745594.htm
8.5.2模糊滤镜2
http://www.21kn.com/web/PhotoshopVideo/1122200771511222023367496.htm
8.6渲染滤镜
http://www.21kn.com/web/PhotoshopVideo/112417077151124177550473.htm
8.7.1画笔描边滤镜1
http://www.21kn.com/web/PhotoshopVideo/1126030771511260355680667.htm
8.7.2画笔描边滤镜2
http://www.21kn.com/web/PhotoshopVideo/1128020771511280246380961.htm
8.8.1素描滤镜1
http://www.21kn.com/web/PhotoshopVideo/1129510771511295156024423.htm
8.8.2素描滤镜2
http://www.21kn.com/web/PhotoshopVideo/1131260771511312674848873.htm
8.8.3素描滤镜3
http://www.21kn.com/web/PhotoshopVideo/1132470771511324757490644.htm
8.8.4素描滤镜4
http://www.21kn.com/web/PhotoshopVideo/1134400771511344051991497.htm
8.8.5素描滤镜5
http://www.21kn.com/web/PhotoshopVideo/1136060771511360642416986.htm
8.9.1纹理滤镜1
http://www.21kn.com/web/PhotoshopVideo/1137330771511373318985752.htm
8.9.2纹理滤镜2
http://www.21kn.com/web/PhotoshopVideo/1139070771511390753994202.htm
8.10.1艺术效果滤镜1
http://www.21kn.com/web/PhotoshopVideo/114117077151141177970536.htm
8.10.2艺术效果滤镜2
http://www.21kn.com/web/PhotoshopVideo/1143030771511430381620514.htm
8.10.3艺术效果滤镜3
http://www.21kn.com/web/PhotoshopVideo/1144580771511445837207300.htm
8.10.4艺术效果滤镜4
http://www.21kn.com/web/PhotoshopVideo/1146530771511465321350400.htm
8.11视频滤镜
http://www.21kn.com/web/PhotoshopVideo/1148150771511481536908246.htm
8.12锐化滤镜
http://www.21kn.com/web/PhotoshopVideo/1150160771511501648298795.htm
8.13.1风格化滤镜1
http://www.21kn.com/web/PhotoshopVideo/1152060771511520647090456.htm
8.13.2风格化滤镜2
http://www.21kn.com/web/PhotoshopVideo/1153310771511533160629940.htm
8.13.3风格化滤镜3
http://www.21kn.com/web/PhotoshopVideo/1155050771511550595345399.htm
8.13.4风格化滤镜4
http://www.21kn.com/web/PhotoshopVideo/1156250771511562577108196.htm
8.14.1其它滤镜1
http://www.21kn.com/web/PhotoshopVideo/1158000771511580033323400.htm
8.14.2其它滤镜2
http://www.21kn.com/web/PhotoshopVideo/115925077151159252094622.htm
8.15 Digimarc
http://www.21kn.com/web/PhotoshopVideo/1200390771512003919780120.htm
9.1视图1
http://www.21kn.com/web/PhotoshopVideo/1202030771512020350549524.htm
9.2视图2
http://www.21kn.com/web/PhotoshopVideo/1203380771512033824707674.htm
第十章:窗口
http://www.21kn.com/web/PhotoshopVideo/1205050771512050514325673.htm
第十一章:帮助菜单
http://www.21kn.com/web/PhotoshopVideo/1206220771512062268745556.htm
以下是Photoshop实例视频教程,更多Photoshop视频教程请上:http://www.21kn.com/web/PhotoshopVideo/
Photoshop实例视频-衣服换色
http://www.21kn.com/web/PhotoshopVideo/1419190772514191952716647.htm
Photoshop实例视频-高尔夫球
http://www.21kn.com/web/PhotoshopVideo/1417580772514175857318634.htm
Photoshop实例视频-多彩BKG效果
http://www.21kn.com/web/PhotoshopVideo/141649077251416494337637.htm
Photoshop实例视频-闪电效果
http://www.21kn.com/web/PhotoshopVideo/141527077251415274817980.htm
Photoshop实例视频-水晶效果
http://www.21kn.com/web/PhotoshopVideo/1413470772514134773954244.htm
Photoshop实例视频-木板画效果
http://www.21kn.com/web/PhotoshopVideo/141247077251412475897553.htm
Photoshop实例视频-木板底纹效果
http://www.21kn.com/web/PhotoshopVideo/1523100772615231015666118.htm
Photoshop实例视频-圆锥体的制作
http://www.21kn.com/web/PhotoshopVideo/1522060772615220690812363.htm
Photoshop实例视频-圆柱体的制作
http://www.21kn.com/web/PhotoshopVideo/1520280772615202855130793.htm
Photoshop实例视频-球体的制作
http://www.21kn.com/web/PhotoshopVideo/151923077261519234178572.htm
Photoshop实例视频-虚边字的制作
http://www.21kn.com/web/PhotoshopVideo/1518080772615180872427399.htm
Photoshop实例视频-水滴字的制作
http://www.21kn.com/web/PhotoshopVideo/1517040772615170445356758.htm
Photoshop实例视频-霓虹字的制作
http://www.21kn.com/web/PhotoshopVideo/151445077261514458089251.htm
Photoshop实例视频-光辉字的制作
http://www.21kn.com/web/PhotoshopVideo/1513590772615135934791887.htm
Photoshop实例视频-光边字的制作
http://www.21kn.com/web/PhotoshopVideo/1512420772615124262554102.htm
Photoshop实例视频-冰雪字的制作
http://www.21kn.com/web/PhotoshopVideo/1511310772615113166064933.htm
Photoshop实例视频-塑料字的制作
http://www.21kn.com/web/PhotoshopVideo/1510080772615100836093.htm
Photoshop实例视频-晶体字的制作
http://www.21kn.com/web/PhotoshopVideo/1508370772615083716795646.htm
Photoshop实例视频-木纹字的制作
http://www.21kn.com/web/PhotoshopVideo/1504100772615041077987170.htm
Photoshop实例视频-金色字的制作
http://www.21kn.com/web/PhotoshopVideo/1502290772615022940329674.htm
Photoshop实例视频-火焰字的制作
http://www.21kn.com/web/PhotoshopVideo/145941077261459414854223.htm
Photoshop实例视频-黑白字的制作
http://www.21kn.com/web/PhotoshopVideo/145713077261457135645351.htm
Photoshop实例视频-颤动字的制作
http://www.21kn.com/web/PhotoshopVideo/1455100772614551035315981.htm
Photoshop实例视频-玻璃按钮的制作
http://www.21kn.com/web/PhotoshopVideo/1454070772614540786999681.htm
Photoshop实例视频-金属按钮的制作
http://www.21kn.com/web/PhotoshopVideo/1452050772614520543683418.htm
给按钮添加css样式有以下三种方法:
1,直接在元素上定义style,如下:
<input type="button" style="这里定义样式">
2,页面中内嵌样式,如下:
<style>
.btn{需要添加的样式}
</style>
<input type="button" class="btn">
3,外部引用css文件,如下:
<link rel="stylesheet" type="text/css" href="这里是css文件的路径">