【发布时间】:2015-08-20 16:40:04
【问题描述】:
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<link rel="stylesheet" href="main.css" />
</head>
<body>
</body>
</html>
当我运行此代码时,我会在浏览器的标题栏和正文中看到“我的页面”!
我为什么会得到这个?
【问题讨论】:
-
好吧 clearly 你的 main.css 看起来像:
body:after { content: 'My Page' }。 -
我已经清除了 main.css 中的所有内容 - 没问题!但是,当我添加
* { display: block; }时,我明白了。 @lc。
标签: html hyperlink stylesheet title