gpt4 book ai didi

css - 在html中添加背景图片时遇到问题

转载 作者:行者123 更新时间:2023-11-27 23:44:02 26 4
gpt4 key购买 nike

我到处搜索但找不到任何解决方案。背景图像没有出现。我的代码写在下面。我已经尝试了所有但失败了。有人可以帮助我吗?

@extends('layouts.app')

@section('content')

<!DOCTYPE html>
< html>

< head>

< title>fullscreen image background

< /title>
< style>

html{

background:url('fee.jpg')no-repeat center center fixed;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;

}
body{
color: #FFFFFF;

}

</style>

</head>
<body>
<p style="text-align: center;">This is a fullscreen background </p>
</body>
</html>

@endsection````

最佳答案

问题是您在 < 之间放置的空格和标签名称。所以删除所有空格,它将起作用。

关于css - 在html中添加背景图片时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56891501/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com