如何将我插入的视频显示在我的页面上?

时间:2018-06-06 17:53:52

标签: html css html5-video

我一直试图让这个视频显示在我的网页上,但所有显示的都是控件,而不是实际的视频。整个网页都是WIP atm,但我只需要让视频工作并循环播放。许多HTML都搞砸了,但这里是代码。



<html>

  <head>
    <meta charset="UTF-8">
    <link href="me.css" rel="stylesheet" type="text/css">
    <title>Layoonie</title>
  </head>
  <h1>L A Y O O N I E</h1>
  <div class="tab">
    <button class="tablinks">Bloop</button>
    <button class="tablinks">Bleep</button>
    <button class="tablinks">Blop</button>
  </div>

  <div id="Bloop" class="tabcontent">
    <h3></h3>
    <p></p>
  </div>

  <div id="Bleep" class="tabcontent">
    <h3></h3>
    <p></p>
  </div>

  <div id="Blop" class="tabcontent">
    <h3></h3>
    <p></p>
  </div>

  <video width="1280" height="720" controls>
<source src="/Users/Ummlynn/Documents/Graphic Design/Lynn.mov" type="video/mov">

</video>

</html>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

试试此代码

<div class="container">
  <form id="login">
    <div class="subscribe">
         <%= form_for @subscriber, :url => url_for(:controller => "subscribers", :action => "create" ), remote: true do |f| %>
            <%= f.label :name, 'SUBSCRIBE TO OUR NEWSLETTER' %>&nbsp;&nbsp;&nbsp;
                    <div id="subscribe-text">
            <%= f.email_field :email_address,placeholder: "email address",row:"3", :class => 'email_class' %>&nbsp;&nbsp;&nbsp;
          </div>
        <%= f.submit "Subscribe", :class => 'button_class' %>
              <% end %>
      </form>
      </div>

            </div>