HTML Form Alignment Issues in IE
I am facing an issue with displaying form on the link http://senseal.ecentriconline.com/products/multi开发者_JAVA百科_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">
精彩评论