您好,欢迎来到知高教育。
搜索
您的当前位置:首页firefox和chromecss不兼容问题请教_html/css

firefox和chromecss不兼容问题请教_html/css

来源:知高教育


css小白来问问题哈。
在chrome和ff上,有代码如下:





  • css:

    .editorbox2{
    overflow: auto ;
    width: 250px;
    height: 300px;
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    }


    #editorbox2_inputword{
    height: 290px;
    width: 250px;
    padding: 0 ;
    outline : 0;
    margin: 2px;
    }

    然后看一下图的效果:
    chrome正常,ff的显示为什么那样呢?

    csdn不能上传图片?请大家去下面的博客中看一下图片吧,谢谢大家了。

    http://yeelone.blog.51cto.com/1476571/9325


    回复讨论(解决方案)

    在css最上面加上以下css试试
    *{padding:0; margin:0;}

    li标签之外有ul标签吗

    试过了,不行 在css最上面加上以下css试试
    *{padding:0; margin:0;}

    有哦,
    但是没有任何css
    li标签之外有ul标签吗

    a{color:#000; /* 火狐 */[;color:red;] /* chrome */}

    Copyright © 2019- zgia.cn 版权所有

    违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

    本站由北京市万商天勤律师事务所王兴未律师提供法律服务