简体   繁体   中英

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 .

It works fine on Firefox, however there is an issue displaying the form on 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 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.

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">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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