BTN adaptive content size, which is no longer a new method. Many people will use it, and the effect is more practical.
Here we just put the following in https://addons.mozilla.org/CodeThe button is put forward for ease of use, and the image name is not changed. If you want to find out the image, you can view it on the page information.
. Install-button {
Font : Bold 14px "trebuchet ms", Helvetica, "Helvetica Neue", Arial, sans-serif ;
}
. Install-button: After {
Content : "." ;
Clear : Both ;
Display : Block ;
Visibility : Hidden ;
Height : 0 ;
Overflow : Hidden ;
}
. Install-button * {
Display : Block ;
Float : Left ;
Position : Relative ;
}
. Install-button {
Float : Left ;
Cursor : Pointer ;
Max-Width : 290px ;
Color : #062445 ;
Text-Decoration : None ;
Background : # 7cc11c URL ("https://addons.mozilla.org/img/sprite.png? 20090430 ") 100%-730px no-repeat ;
}
. Install-button a span {
Padding : 0 0 0 6px ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Left Bottom no-repeat ;
}
. Install-button a span Span {
Padding : 0 0 8px 0 ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Right Bottom no-repeat ;
}
. Install-button a span Span {
Left : -6px ;
Padding : 0 0 6px 0 ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Left top no-repeat ;
}
. Install-button a span strong {
Right : -6px ;
Padding : 10px 45px 0 6px ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Right top no-repeat ;
}
. Install-button a: hover,. Install-button a: focus,. Install-button a: Active {
Color : #0a3b73 ;
Background-color : # 9dd34c ;
Background-Position : 100%-860px ;
}
< P Class = "Install-button" > < A Href = "#" > < Span > < Span > < Span > < Strong > When you look at beautiful women in the street, you can enjoy the beauty when you look at the street. </ Strong > </ Span > </ Span > </ Span > </ A > </ P >
When you look at beautiful women in the street, you can enjoy the beauty when you look at the street.
Max-width is invalid in IE6. Only BR line breaks can be added.