定位对象

An object, such as an image or frame, is positioned within a document using an anchor attached to another element.

An anchor determines the reference point for an object. The reference point could be the page or frame where the object is, a paragraph, or even a character. An object always has an anchor.

An anchor moves with the element it is attached to as the document is edited. An object retains its position relative to the reference point determined by its anchor, such that, whenever the reference point moves or changes, the object moves relative to it.

The following anchoring options are available:

锁定

效果

当作字符

Anchors the selected object as a character in the current text. If the height of the selected object is greater than the current font size, the height of the line containing the object is increased.

要使图像在 HTML 页面上居中,请插入图像,将其锁定为"作为字符",然后使段落居中。

在字符上

Anchors the selected object to the paragraph that contains the character to which the anchor is attached. The reference point for the object is the start of the paragraph that contains the character.

For example, if you split the paragraph at a point before the anchor, the reference point moves to the start of the new paragraph and the object moves relative to that point. If you join the paragraph to the one before it, the reference point moves to the start of the combined paragraph and the object moves to a position relative to that.

在段落上

Anchors the selected object to the current paragraph.

在页面上

Anchors the selected object to the current page.

在框内

Anchors the selected object to the surrounding frame.


note

Objects can only be positioned on the page where their anchor is located.


Moving an Anchor

When you insert a shape, textbox, OLE object, image, or frame in your document, an anchor icon appears where the object is anchored. You can move an anchor or, keeping other object constraints in mind, position an object relative to the anchor's reference point by dragging the object.

Changing an Anchor

To change the anchoring options of an object, right-click the object, and then choose an option from the Anchor submenu.

请支持我们!