我目前正在开发我的第一个 React 应用程序,但我正面临一些困难(对我而言)。
<div
className="container-fluid"
id="cityDetail"
style={{
backgroundImage: `url(${camera.lastPhoto})`,
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundSize: "cover",
height: "100vh"
}}
>
Run Code Online (Sandbox Code Playgroud)
我想延迟加载 backgroundImage。
我还没有找到好的组件/实用程序来做到这一点。有没有人有任何想法?
我在一个网站http://www.getyogi.fr/上做了 4 个登陆页面,一个 php 脚本随机化了不同的登陆页面。
但我的问题是修复开放图facebook。他返回:无法遵循重定向路径 - 使用来自http://www.getyogi.fr/lp1/ 的数据,因为重定向路径后出现错误。
这是我的开放图 HTML:
<meta property="og:title" content="Le yoga en ligne">
<meta property="og:site_name" content="GET YOGi">
<meta property="og:url" content="http://www.getyogi.fr/">
<meta property="og:description" content="GET YOGi est un site pour pratiquer le yoga en ligne et prendre soin de vous où et quand vous voulez. Depuis votre mobile, votre tablette ou votre ordinateur, des cours HD disponible 24H/24, 7 jours /7.">
<meta property="fb:app_id" content="677363099034751">
<meta property="og:type" content="website">
<meta property="og:image" content="http://www.getyogi.fr/lp1/img/yoga1.jpg">
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮助我吗?