问题描述:

This question already has an answer here:

  • CSS3 Gradient Borders

    13 answers

网友答案:

As suggested by codehorse, using box shadow inset accomplishes what I'm looking for, and with much less code at that. Thanks guys!

网友答案:

This css declaration will only work under mozilla browser

.border_gradient {
    border: 8px solid #000;
    -moz-border-bottom-colors: #897048 #917953 #a18a66 #b6a488 #c5b59b #d4c5ae #e2d6c4 #eae1d2;
    -moz-border-top-colors:    #897048 #917953 #a18a66 #b6a488 #c5b59b #d4c5ae #e2d6c4 #eae1d2;
    -moz-border-left-colors:   #897048 #917953 #a18a66 #b6a488 #c5b59b #d4c5ae #e2d6c4 #eae1d2;
    -moz-border-right-colors:  #897048 #917953 #a18a66 #b6a488 #c5b59b #d4c5ae #e2d6c4 #eae1d2;
}
相关阅读:
Top