求教一段简单的table样式,为啥chrome,ie下有问题(opera,ff下正常))_html/css_WEB-ITnose

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

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    
    















回复讨论(解决方案)

在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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!