我试图通过CSS在网站的背景上显示一张图片。我希望图像保存在一个独立的文件夹中,而不是CSS/HTML文件。如果我将它放置在与CSS/HTML文件相同的文件夹中,并且只引用它的名称,则图像只会显示。
代码在C:\Users\User\Desktop\project\templates中,图像在C:\Users\User\Desktop\project\pictures中。如果我尝试使用绝对路径,它将不会显示。只有当我将图片放在“模板”文件夹中时,它才会显示。
<!--This code works if I place the picture in the template file--
我正在尝试编写一个PowerShell脚本,以便通过包含嵌入图片的Exchange服务器发送邮件:
Start-Process Outlook
$file1='C:\ScreenShots\file1.png'
$file2='C:\ScreenShots\file2.png'
$textBody=""<html>Hello, <br /> <br /> Here are the pictures : <br /> <br /><br /><tr><t
我有一张图片:app/assets/images/oops.jpg
在404.html中有:
<html>
<head>
<title>Oops! Where are we?</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background: url('oops.jpg') no-repeat center cent