将冲击波影片和内容向左对齐 [英] aligning shockwave movie and content to the left

查看:60
本文介绍了将冲击波影片和内容向左对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用从www.youtube.com复制的一些嵌入式代码来在我的博客上播放Flash电影,但是,我无法使电影和内容与中间位置对齐.

Diary.aspx

I''m using a little embedded code copied from www.youtube.com, to play a flash movie on my blog, however, I can''t get the movie and content to align to the middle.

Diary.aspx

<pre lang="xml"><%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Diary.aspx.cs" Inherits="Diary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
    This page is still under construction. <br/>
    <p> <object align="middle" width="480" height="385">
        <param name="movie" value="http://www.youtube.com/v/rNBWf54RvsI?fs=1&amp;hl=en_GB"></param>
        <param name="allowFullScreen" value="true"> </param>
        <param name="allowscriptaccess" value="always"></param>
        <embed src="http://www.youtube.com/v/rNBWf54RvsI?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash"
        type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
        width="480" height="385"></embed>
    </object> </p>
</asp:Content>





源代码此处.





Source code here.

推荐答案

这不是一个ASP.NET问题,它是一个基本的HTML问题.我相信您需要创建一个对象,该对象就是该标签要与之对齐的屏幕的整个宽度.使用CSS之前,总是先尝试一下,直到找到它为止,实际上都没有道理.
This is not an ASP.NET question, it''s a basic HTML question. I believe you need to create an object that is the full width of the screen for this tag to align itself with. With CSS, it''s always a case of try until you find it, none of it actually makes sense.,


好吧,只是页面中的其他文本与是的,我也不知道为什么.
Well it just happens that other text within the pages are aligned to the right and I can''t figure out why either.


这篇关于将冲击波影片和内容向左对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆