English 中文(简体)
改变身体背景
原标题:can t change body background color using CSS reset

Here is my HTML code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Hover Zoom</title>
        <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css">
        <link rel="stylesheet" type="text/css" href="style.css">
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
    </head>
    <body>

    </body>
</html>

这里是我的特别安全局的档案编码(.cs):

body {
    background-color: #FF0000;
}

但是,<代码>背后背面图并不改变。

如果没有特别安全局的重新定位,它就进行罚款。 您能向我提出更好的社会保障制度重组,或者任何其他解决办法?

最佳回答

改变你的甄选者

html, body{
    background-color: #FF0000;
}
问题回答

b 雄辩的答案是正确的,但Ill则解释了什么是错的,为什么这一解决办法发挥作用:

页: 1 你只是将<条码>列入“人名/代码”作为背景说明,但由于你没有内容,你身体的身高极小。 顺便说一句,你看不到尸体的背景。

仅将html>>- 载于《科学、社会、文化权利国际公约》中:

html, body { background-color: #FF0000; }

http://www.un.org。

如果您没有制定<条码>html背景说明,那么<条码>就会代表整个页。 但是,由于你使用外部来源的CSS重新定位,你没有选择不设置html<>>>>。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!