Home  >  Article  >  Web Front-end  >  firefox 和 chrome css 不兼容问题请教_html/css_WEB-ITnose

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

WBOY
WBOYOriginal
2016-06-24 12:13:521019browse

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 */}



    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn