What is a user agent stylesheet?

后端 未结 14 765
无人及你
无人及你 2020-11-22 16:58

I\'m working on a web page in Google Chrome. It displays correctly with the following styles.

table {
    display: table;
    border-collapse: separate;
             


        
14条回答
  •  忘掉有多难
    2020-11-22 17:36

    Regarding the concept “user agent style sheet”, consult section Cascade in the CSS 2.1 spec.

    User agent style sheets are overridden by anything that you set in your own style sheet. They are just the rock bottom: in the absence of any style sheets provided by the page or by the user, the browser still has to render the content somehow, and the user agent style sheet just describes this.

    So if you think you have a problem with a user agent style sheet, then you really have a problem with your markup, or your style sheet, or both (about which you wrote nothing).

提交回复
热议问题