新建jsp页面上的字比别人的大,没控制过字体,这是为什么_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:38:04
Original
1134 people have browsed it

我用我的myeclipse写出的jsp页面上的字的大小比别人的大,他用他的myeclipse,我们都没有控制过字体大小


回复讨论(解决方案)

myeclipse新建的jsp的dtd有各种各样,以标准来看可能都有问题,建议以html5为标准。

<!doctype html><html><head>    <meta charset="UTF-8">    <title>test</title></head><body><script>    </script></body></html>
Copy after login

查看源代码,在页面输出的页面上doctype前面不得有任何东西,要不然触发ie的怪异模式。
看看是不是这个问题。

恩对比出来了,他比我多了东西

<!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">
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template