Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.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 为什么我不能将图像环绕文本?_Html_Css_Image_Containers_Wrapper - Fatal编程技术网

Html 为什么我不能将图像环绕文本?

Html 为什么我不能将图像环绕文本?,html,css,image,containers,wrapper,Html,Css,Image,Containers,Wrapper,为什么我不能将图像环绕文本将图像置于文本后面 Css代码: .wrap5{ background-image: url ('https://upload.wikimedia.org/wikipedia/commons/e/e3/Alto%27s_Adventure_animation_-_01_Chasm.gif'); } Html代码: <div class = "wrap5"> <br><br> <center><h1

为什么我不能将图像环绕文本将图像置于文本后面

Css代码:

.wrap5{
        background-image: url ('https://upload.wikimedia.org/wikipedia/commons/e/e3/Alto%27s_Adventure_animation_-_01_Chasm.gif');
}
Html代码:

<div class = "wrap5">
<br><br>
<center><h1 style = "color: blue; font-family: monsterrat; letter-spacing: 1px; font-weight: 900;">Are you willing to go on the best journey?</h1></center>
<br><br><br><br>
<center>
<button class = "but" style = "float: center" onclick = "document.getElementById('modal-wrapper2').style.display='block'">Get Started</button>
</center>
<br><br>
<hr>
</div>

删除url和左括号之间的空白:

.wrap5{ 背景图片:url'https://upload.wikimedia.org/wikipedia/commons/e/e3/Alto%27s_Adventure_animation_-_01_Chasm.gif'; }