mozilla
您的搜索结果

    border

    Summary

    The border property is a shorthand property for setting the individual border property values in a single place in the style sheet. border can be used to set the values for one or more of: border-width, border-style, border-color.

    Syntax

    border: [border-width ||border-style ||border-color |inherit] ;
    

    Values

    border-width
    See border-width.
    border-style 
    See border-style.
    border-color 
    See border-color.

    Examples

    查看在线演示

    element { 
        border: 1px solid #000;
    }
    

    Notes

    While the border-width, border-style, and border-color properties accept up to four values, this property only accepts one value for each property.

    Specifications

    Browser compatibility

    Browser Lowest Version
    Internet Explorer 4
    Firefox 1
    Netscape 4
    Opera 3.5

    See also

    Border-related properties: border, border-width, border-style, border-color, margin, padding

    文档标签和贡献者

    标签: 
    此页面的贡献者有: Zmylxb, teoli
    最后编辑者: teoli,