Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 背景重复-x在Tumblr主题上搞砸了_Html_Css_Tumblr - Fatal编程技术网

Html 背景重复-x在Tumblr主题上搞砸了

Html 背景重复-x在Tumblr主题上搞砸了,html,css,tumblr,Html,Css,Tumblr,我刚刚在标题标签中添加了带有背景的标题文本,顶部的背景图像非常不稳定。有什么我能解决的吗 这是我现在为正文和标题准备的css html, body { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; color: #351F14; background-color: #E6D0A1; background-image: url('http://static.tumblr.com/pvgoybd/UE

我刚刚在标题标签中添加了带有背景的标题文本,顶部的背景图像非常不稳定。有什么我能解决的吗

这是我现在为正文和标题准备的css

html, body {

font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #351F14;
background-color: #E6D0A1;
background-image: url('http://static.tumblr.com/pvgoybd/UEfmk0nj3/background_02.png');
background-repeat: repeat-x;

}
#masthead {
    max-width: 1400px;
    min-height: auto;
    position: relative;
    bottom: 8px;
    left: 82px;
}
#masthead h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 48px;
    color: #F2EBD9;
    font-weight: bold;
    background-color: #4F3117;
    max-width: 401px;
    min-height: 62px;
    padding-left: 30px;
    margin-left: 30px;
    position: relative;
    bottom: 7px;
}

有什么我需要改进的吗?

您已经将背景设置为html和body,这样您可以看到它两次。

如何?请详细说明。把图像放在头部?为什么它在正文中,它没有意义你想要这样的东西你真的应该为标题和东西有单独的div,如btevfik所示,正文通常指所有可查看的html代码。