浏览器查看 [英] browser viewing

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

问题描述

我使用模板和附加页面创建了母版页。
在教程之后,我给出了"容器"。页面边距设置为0px auto auto 0px希望页面和附件在查看时自动居中在页面上。但他们查看页面的左侧和顶部。
有人可以帮我设置。另外,我是否需要将设置添加到每个页面,或者是主页是否足够。

另外,我发现给DWT一个可编辑的区域,我用于每个附件,我不再有能力从图层下拉菜单中查看我的图层 - 也许这与上述问题有关。

干杯Jane

I have created my master page using a template and attached pages.  
Following a tutorial, I gave the "container" page a margin setting of 0px auto auto 0px hoping that the page and attachments would automatically centre on the page when viewing.  But they view to the left and top of the page.
Can someone help me with the settings.  Also, would I need to add the settings to each page, or is the master page enough.

Also, I have found that giving the DWT an editable region which I use for each attachment, I no longer have the 
ability to view my layers from the Layers pulldown - perhaps this is tied in with the above problem.

Cheers Jane

推荐答案

首先,要使div居中,需要指定宽度,边距为:

边距:0px auto 0px auto; (上,右,下,左)

左边距:0px自动自动0px

你告诉它在顶部和左边有零边距,这正是它正在做什么。

现在,除此之外,如果你使用图层,你将为自己造成许多问题。 DWT的不可编辑部分中的图层在附加页面上不可编辑/可管理。此外,极少数情况下需要/有用的层,然后只有完全理解陷阱的人。
First, to center a div, you need a width specified, and the margin would be:

margin: 0px auto 0px auto;   (top, right, bottom, left)

not margin: 0px auto auto 0px

You've told it to have zero margin at the top and left, which is exactly what it's doing.

Now, beyond that, if you are using layers, you will cause many problems for yourself.  Layers in the uneditable sections of a DWT are not editable/manageable on an attached page.  Also there are very, very few cases where a layer is needed/useful, and then only by someone who fully understands the pitfalls.


这篇关于浏览器查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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