当前位置:Gxlcms > html代码 > firefox和chromecss不兼容问题请教_html/css_WEB-ITnose

firefox和chromecss不兼容问题请教_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:16人阅读

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/932895


    回复讨论(解决方案)

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

    li标签之外有ul标签吗

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

    有哦,


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

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

    人气教程排行