Firefox browser css style settings, effective writing

/*此处为火狐浏览器特定解析方式写法 */
/*仅 firefox 识别 */
@-moz-document url-prefix() {
    
    
            .layuimini-main {
    
    
                width: 48.2%!important;/*通用写法里的width优先级要高于此处,所以加!important */
                scrollbar-width: thin;/*设置滚动条样式 */
            }

            .contentMargri {
    
    
                margin-right: 0px;
                padding-right: 7px;
            }
        }
//下面是通用的写法(谷歌 360等等通用的)
        .layuimini-main {
    
    
            width: 48%;
            height: 311px;
            margin-bottom: 7px;
            overflow: auto;
        }

        .contentMargri {
    
    
            margin-right: 7px;
        }

Attached sentence: The margin of Firefox is counted within the width, boy, change the code

Have you seen this article? Don’t just laugh, the old man also searched for a long time and found it, just like it and leave.

Guess you like

Origin blog.csdn.net/weixin_45895806/article/details/110002968