I wrote a jsp page today. I tried to adjust <div style="margin:0 auto">123xxx</div> but it didn't make the page display in the center. And other styles also had inexplicable problems. Later I found the solution to this problem: It turns out that L-Blog does not add DTD before HTML by default, so IE interprets the document as HTML instead of XHTML. The problem is not with CSS but with the XHTML pages themselves. You need to add the following code to make the above settings effective: Copy code The code is as follows:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> If you want the stricter XHTML 1.0 Strict or XHTML 1.1 please refer to the relevant documents. The above tests are based on IE6 and FireFox 1.0 final version on Windows XP SP2. It is recommended that if you need to use CSS styles on the page, do not delete this line: Copy code The code is as follows:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<<: Detailed explanation of the use and underlying principles of MySQL table partitions
>>: Detailed explanation of the significance of standard commit msg in JavaScript development
As a tester, you may often need to install some s...
Preface In the development of actual projects, we...
Table of contents 1. Basic use 2. Several points ...
Table of contents Writing Background Project Desc...
Table of contents What is the Linux system that w...
Problem background: There is a requirement to tak...
Table of contents Overview 1. Dependency Injectio...
Since enabling https access for the entire site, ...
Sometimes you need to set several areas on a pict...
Table of contents 1. First, configure the main.js...
During this period of time, I was studying docker...
Preface: I used the official nginx proxy_cache as...
Preface In most projects, you will encounter onli...
Table of contents background analyze method backg...
Recent product testing found a problem that when ...