本文为不可多得的Photoshop制作CSS动感按钮的在线教材,持续几周名列del.icio.us/popular排行。
专业制作这样按钮的价格是$10/每组。定制的价格更高,100-200美金/每组。对比一下国内的网站,就知道为什么这种风格的设计这么值钱了。中国的设计师很多,会摆弄Photoshop也有不少,可没几个能拿出象样玩意的。
凤栖梧今后将大量介绍这样的在线学习教程,感兴趣的网友常来关注。
注:为保证教程准确,一律采用原文。
The Image
Ok, to start with we need to make an image in two different states. State number one will be the natural state and state number two will be the hover state.
1) Begin by creating a new document in Photoshop using the following settings.

For this example I am going to fill the background layer with a dark blue (#0B415F), but feel free to experiment.
2) Create a new layer called ‘Button’ and with the ‘Rounded Rectangle Tool’ draw a rectangle path that fills the canvas. Then click on the ‘Paths’ tab in the layers pallete, right click on the rectangle path you just created and select ‘Make Selection’ from the dropdown. You can now delete the path you created.
3) With the selection you just created still highlighted, select your ‘Gradient Tool’ and input the following settings (left-colour: #003D5B, right-colour: #00547E).

4) Make sure your button layer is selected and using a linear gradient, drag from the bottom of the selection to the top and deselect. You should now have something that looks a little like this.

5) Now we need to make it look pretty! Right click on your ‘Button’ layer and select ‘Blending Options.’ In the window that opens, select ‘Bevel and Emboss’ and input the following settings.

6) With a little luck, you should now have something that resembles this

7) Save this document as button.psd. Now, go back to your bevel settings and invert the bevel direction as shown below.

8) Save this document as hover.psd. You should now have two buttons like this


9) Now it’s time to pimp them to your liking. I used some text and an icon to create these.

The Code
Now that you have your images ready to go, we need to integrate them into your website. I used the following code, but there are various ways to achieve this same effect.
CSS
#bigbuttons {
padding: 50px 0 0 0;
margin: 0;
width: 200px;
}
#bigbuttons li{
list-style: none;
padding: 0 0 50px 0;
margin: 0;
.gallery {
background-image: url(hover image path);
background-repeat: no-repeat;
height: 75px;
width: 200px;
}
.gallery a{
background-image: url(normal image path);
background-repeat: no-repeat;
height: 75px;
width: 200px;
display: block;
}
.gallery a:hover{
background: none;
}
.contact {
background-image: url(hover image path);
background-repeat: no-repeat;
height: 75px;
width: 200px;
}
.contact a{
background-image: url(normal image path);
background-repeat: no-repeat;
height: 75px;
width: 200px;
display: block;
}
.contact a:hover{
background: none;
}
XHTML
<ul id="bigbuttons">
<li class="gallery"> <--put your link in here--> </li>
<li class="contact"> <--put your link in here--> </li>
</ul>
The Result
Whala! A Press in button. See it in action on this test site
If anyone uses these for anything cool, please let me know