关注前端开发
关注用户体验

HTML层问题之如何能将文字至于视频上面?

先看HTML代码,试想如何能将文字至于视频上面?

<div><embed src=”http://www.tudou.com/v/UUZqjxo_WLI” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” wmode=”opaque”></embed></div>

<div?class=”text”& gt;怎么样上传视频?</div>

一般我们都会先考虑z-index,或者直接将z- index设为0;

但是结果都一样:失败!

几番测试之后,我想到了embed标签本身会不会有 问题。

于是开始查找embed的属性,结果是wmode的 问题。

一种方法是:

将embed设为opaque,即embed:”opaque”;

测试结果:成功!

另一种方法是:

将embed设为transparent,即embed:”transparent”;

但此时须将外面的DIV的z-index设为最低, 如:.video{position:relative;?z-index:1;}.text{position:relative; z-index:10;};

测试结果:成功!

ok!问题解决,供大家参考,有问题请留言或Q 我,875837062!

赞(1)
未经允许不得转载:大前端 » HTML层问题之如何能将文字至于视频上面?
分享到: 更多 (0)

评论 7

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #7

    I am now not sure the place you are getting your info, however great topic.
    I needs to spend some time studying much more or figuring out more.
    Thanks for great info I was searching for this information for my mission.

  2. #6

    I don’t like your template but your posts are quite great so I will check back! Also i can’t join to your rss feed! Any ideea why?

    Carolyne Wigand2周前 (05-15)回复
  3. #5

    Great read! Will check back some other time to see if you add more to your updates.

    Nonton Anime2周前 (05-10)回复
  4. #4

    Well said. I never thought I would agree with this opinion, but I’m starting to view things from a different view. I have to research more on this as it seems very interesting. One thing I don’t understand though is how everything is related together.

    cat care3周前 (05-08)回复
  5. #3

    Hello there! This article couldn’t be written much better! Going through this post reminds me of my previous roommate! He constantly kept preaching about this. I am going to send this post to him. Pretty sure he will have a great read. Thanks for sharing!

    DMC52个月前 (03-31)回复
  6. #2

    Most heavy duty trailer hitches are designed using cutting edge computer aided models and fatigue stress testing to ensure optimal strength. Share new discoveries with your child and keep your child safe by purchasing the correct design for your lifestyle by following the Perfect Stroller Buyers Guideline.

    my singing monsters2个月前 (03-28)回复
  7. #1

    We still cannot quite think that I could truthfully often be those types of checking important points entirely on your blog post. My children and so i are sincerely thankful for one’s generosity too as for giving me possibility pursue our chosen profession path. Information you information I received with your web-site.

    Renata Garigliano3个月前 (03-11)回复

themebetter 国内更好的WordPress主题服务商

立即前往