中心网页信息 [英] Center web page info

查看:53
本文介绍了中心网页信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何集中信息。在网页上?我希望我的

网站像MySpace.com一样工作,当我调整浏览器窗口大小时页面内容仍然是
居中。对于我的生活,我不能确定如何做到这一点。我今天迫不及待想出来了!

请帮助!


FYI:我在所有网页中都引用了一个母版页文件。 />
我的页面内容存储在一个或多个面板控件中。


- Melissa

(使用Asp.net 2.0,Visual Basic,Windows XP Pro SP2)

Does anyone know a way to center the info. on a webpage? I want my
web site to work like MySpace.com where the page content remains
centered when I resize the browser window. For the life of me I can''t
figure out how to do it. I am desperate to figure it out today!
Please help!

FYI: I am referencing one master page file in all of my web pages.
The content of my pages are stored in one or more panel controls.

- Melissa
(Using Asp.net 2.0, Visual Basic, Windows XP Pro SP2)

推荐答案

打开Internet Explorer,单击查看菜单,选择源菜单项。 />

:-)


老实说,我想他们正在将CSS样式应用于DIV和TABLE标签,但是

我不是很确定;我通常将UI工作分配给其他人,并专注于数据/业务层。

-

~~~~~ ~~~~~~~~~~~~~~~~~~~~~

Ben Rush

Microsoft .NET顾问
http://www.ben-rush.net/blog
http://www.sideshowsystems.com

" Mel" < ML ******** @ gmail.comwrote in message

news:11 ********************* @ u2g2000hsc.googlegrou ps.com ...
Open up Internet Explorer, click the View menu, select the Source menu item.

:-)

Honestly, I imagine they''re applying CSS styles to DIV and TABLE tags, but
I''m not absolutely sure on that; I usually farm out that UI work to other
people and concentrate on the data/business layer.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Ben Rush
Microsoft .NET Consultant
http://www.ben-rush.net/blog
http://www.sideshowsystems.com
"Mel" <ML********@gmail.comwrote in message
news:11*********************@u2g2000hsc.googlegrou ps.com...

有没有人知道如何集中信息。在网页上?我希望我的

网站像MySpace.com一样工作,当我调整浏览器窗口大小时页面内容仍然是
居中。对于我的生活,我不能确定如何做到这一点。我今天迫不及待想出来了!

请帮助!


FYI:我在所有网页中都引用了一个母版页文件。 />
我的页面内容存储在一个或多个面板控件中。


- Melissa

(使用Asp.net 2.0,Visual Basic,Windows XP Pro SP2)
Does anyone know a way to center the info. on a webpage? I want my
web site to work like MySpace.com where the page content remains
centered when I resize the browser window. For the life of me I can''t
figure out how to do it. I am desperate to figure it out today!
Please help!

FYI: I am referencing one master page file in all of my web pages.
The content of my pages are stored in one or more panel controls.

- Melissa
(Using Asp.net 2.0, Visual Basic, Windows XP Pro SP2)



" Mel" < ML ******** @ gmail.comwrote in message

news:11 ********************* @ u2g2000hsc.googlegrou ps.com ...
"Mel" <ML********@gmail.comwrote in message
news:11*********************@u2g2000hsc.googlegrou ps.com...

我今天绝望地想出来!
I am desperate to figure it out today!



< asp:Panel ID =" MyPanel" RUNAT = QUOT;服务器" Horizo​​ntalAlign =" center">


< / asp:面板>





< div style =" margin-left:auto; margin-right:auto;">


< / div>

-
http://www.markrae.net

<asp:Panel ID="MyPanel" runat="server" HorizontalAlign="center">

</asp:Panel>

or

<div style="margin-left:auto;margin-right:auto;">

</div>
--
http://www.markrae.net


6月21日上午10:26,Ben Rush < ben @ sideshowsystemsDOTcomwrote:
On Jun 21, 10:26 am, "Ben Rush" <ben@sideshowsystemsDOTcomwrote:

打开Internet Explorer,单击查看菜单,选择源菜单项。


:-)


老实说,我想他们正在将CSS样式应用于DIV和TABLE标签,但是

我不是很确定;我通常将UI工作分配给其他人,并专注于数据/业务层。


-

~ ~~~~~~~~~~~~~~~~~~~~~~~~~

Ben Rush

Microsoft .NET Consultanthttp:// www.ben-rush.net/bloghttp://www.sideshowsystems.com


" Mel" < MLights ... @ gmail.com写信息


新闻:11 ********************* @ u2g2000hsc .googlegrou ps.com ...
Open up Internet Explorer, click the View menu, select the Source menu item.

:-)

Honestly, I imagine they''re applying CSS styles to DIV and TABLE tags, but
I''m not absolutely sure on that; I usually farm out that UI work to other
people and concentrate on the data/business layer.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Ben Rush
Microsoft .NET Consultanthttp://www.ben-rush.net/bloghttp://www.sideshowsystems.com

"Mel" <MLights...@gmail.comwrote in message

news:11*********************@u2g2000hsc.googlegrou ps.com...

有没有人知道如何集中信息。在网页上?我希望我的

网站像MySpace.com一样工作,当我调整浏览器窗口大小时页面内容仍然是
居中。对于我的生活,我不能确定如何做到这一点。我今天不顾一切地想出来!

请帮忙!
Does anyone know a way to center the info. on a webpage? I want my
web site to work like MySpace.com where the page content remains
centered when I resize the browser window. For the life of me I can''t
figure out how to do it. I am desperate to figure it out today!
Please help!


FYI:我在所有网页中引用了一个母版页文件。

我的网页内容是存储在一个或多个面板控件中。
FYI: I am referencing one master page file in all of my web pages.
The content of my pages are stored in one or more panel controls.


- Melissa

(使用Asp.net 2.0,Visual Basic,Windows XP专业版SP2) - 隐藏引用的文字 -
- Melissa
(Using Asp.net 2.0, Visual Basic, Windows XP Pro SP2)- Hide quoted text -



- 显示引用的文字 -


- Show quoted text -



是的,源代码是我一直在筛选的。但是,对我来说,这并不是很有意义。这有点像读希腊文。我有点b $ b尝试了一些东西,但我想有人可以指出我的方向

方向。

Yep the source is what I have been sifting through. It doesn''t make
much sense to me though. It''s sort of like reading greek. I have
tried a few things but I thought someone could point me in the right
direction.


这篇关于中心网页信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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