windows 10 1809 x64
Vagrant 2.2.3
centos/7 v1901.01
VirtualBox 6.0.4
.containerA {
width: 70vw;
height: 30vh;
outline: 1px dashed red;
background: url(https://i.ibb.co/ZHvWsKb/o1z7p.jpg)no-repeat center;
background-size: contain;
cursor: pointer;
}
iframe {
width: 70vw
}
<div class='containerA' data-url='https://example.com'></div>
<iframe id='brand' src='about:blank'></iframe>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
我该怎么办?
答案 0 :(得分:0)
将此添加到您的配置
# Automatically installs required plugin on Windows
if Vagrant::Util::Platform.windows?
plugin = 'vagrant-winnfsd'
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin?(plugin)
end
Vagrant.configure(2) do |config|
# Sync the sources folder with the machine
# For Windows `nfs` is preferred due to poor performance of default settings.
if Vagrant::Util::Platform.windows?
config.vm.synced_folder "share", "/var/www/html", type: 'nfs'
else
config.vm.synced_folder "share", "/var/www/html", mount_options: ["dmode=777","fmode=777"]
end
end