>  기사  >  웹 프론트엔드  >  firefox 和 chrome css 不兼容问题请教_html/css_WEB-ITnose

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

WBOY
WBOY원래의
2016-06-24 12:13:521020검색

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



    성명:
    본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.