Home > Web Front-end > HTML Tutorial > I would like to ask for advice on a simple table style. Why is there a problem under chrome and ie (normal under opera and ff))_html/css_WEB-ITnose

I would like to ask for advice on a simple table style. Why is there a problem under chrome and ie (normal under opera and ff))_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:10:31
Original
1425 people have browsed it




    
    
    .borderStyle
    {
        border-style:solid;
        border-color:Black;
        border-width:1px;
        width:250px;
        height:132px;
    }
    .td1
    {
        width:70px;
    }
    .td2
    {
        width:150px;
    }
    .rightstyle
    {
        float:right;
    }
    
    






用户名
密码







回复讨论(解决方案)

在ie下2个text会长度不一样,是我最想不通的
在chrome下,2个label文字都变树立的了也让我想不通
请教大家了

各个浏览器对html各标签有各自的解析方式。

正如楼主所述的在ie下,两个input的长度不一样,如果楼主把password换成text,两个input的长度就一致了

xhtml css 来布局,想达到在各个浏览器的预想效果,一般要重置下css,即reset css,比如楼主?两个input长度不一样,可以在css中定义它们的width,来达到一致的效果

各个浏览器对html各标签有各自的解析方式。

正如楼主所述的在ie下,两个input的长度不一样,如果楼主把password换成text,两个input的长度就一致了

xhtml css 来布局,想达到在各个浏览器的预想效果,一般要重置下css,即reset css,比如楼主?两个input长度不一样,可以在css中定义它们的width,来达到一致的效果

多谢calmcrime大哥的说明,是我大意的,一个是text,一个是pwd,忽略了这点

为什么chrome下文本变竖的原因我也明白了,谢谢大家

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template