Wordpress 视频对齐中间不起作用
Wordpress Video Align middle not working
我有一个 WordPress 主题有问题。
这是我网站的 URL,如果您向下滚动到 iFB
部分
然后你会在那里看到一个视频。
我已输入此代码以将其放入此页面
<iframe
src="https://www.youtube.com/embed/KO2hFoKDh18"
width="560"
height="315"
frameborder="0"
align="middle"
allowfullscreen="allowfullscreen"
></iframe>
但还在向左走。
有人可以帮助我吗?
<iframe src="https://www.youtube.com/embed/KO2hFoKDh18" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
element.style {
margin-left: 400px;
}
如果您想对齐数据,可以通过多种方式对齐。对齐中心对继承不起作用,所以你可以使用 css。在此处制作 class 样式。所以在脚本标签中你可以给 margin-left 这样它就会向右移动,根据你的需要进行调整。
.style {
margin-left: 400px;
}
</style>
<iframe class="style" src="https://www.youtube.com/embed/KO2hFoKDh18" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
我有一个 WordPress 主题有问题。
这是我网站的 URL,如果您向下滚动到 iFB
部分
然后你会在那里看到一个视频。
我已输入此代码以将其放入此页面
<iframe
src="https://www.youtube.com/embed/KO2hFoKDh18"
width="560"
height="315"
frameborder="0"
align="middle"
allowfullscreen="allowfullscreen"
></iframe>
但还在向左走。
有人可以帮助我吗?
<iframe src="https://www.youtube.com/embed/KO2hFoKDh18" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
element.style {
margin-left: 400px;
}
如果您想对齐数据,可以通过多种方式对齐。对齐中心对继承不起作用,所以你可以使用 css。在此处制作 class 样式。所以在脚本标签中你可以给 margin-left 这样它就会向右移动,根据你的需要进行调整。
.style {
margin-left: 400px;
}
</style>
<iframe class="style" src="https://www.youtube.com/embed/KO2hFoKDh18" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>