简体   繁体   English

IE中的HTML表单对齐问题

[英]HTML Form Alignment Issues in IE

I am facing an issue with displaying form on the link http://senseal.ecentriconline.com/products/multi_primer_overview.html . 我在链接http://senseal.ecentriconline.com/products/multi_primer_overview.html上显示表单时遇到问题。

It works fine on Firefox, however there is an issue displaying the form on IE. 它在Firefox上工作正常,但在IE上显示表单时出现问题。 Please check and suggest what needs to be done. 请检查并建议需要做什么。

Your help would be greatly appreciated. 您的帮助将不胜感激。

Change your doctype line (first line) to this: 将您的doctype行(第一行)更改为:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

This will bring IE out of Quirks mode , which is the reason your form is in the wrong place. 这将使IE退出Quirks模式 ,这就是您的表单出错的原因。

you could also try this: 你也可以试试这个:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM