Problems encountered during graduation project today: such as title
The Code is as follows:
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %><%@taglib prefix="s" uri="/struts-tags"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The above code can run normally in other browsers, but it cannot be displayed in Firefox. It was initially considered that the browser compatibility and Image Width overflow may be too large. After debugging, the overflow suspicion was ruled out. Then I asked a question in the Q & A. The reason for the standard was the high answer.
After some exploration, I finally found the crux of the problem:
Different browsers process different standards. When Firefox processes XHTML 1.0, the IMG tag must contain the SRC and ALT attributes.
Change
It is displayed as normal. There are other solutions, such
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Change
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">