You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
687 B

10 years ago
# 位置
- order: 1
位置有四个方向。
---
````jsx
var Tooltip = antd.Tooltip;
10 years ago
var text = <span>提示文字</span>;
10 years ago
React.render(
10 years ago
<div>
<Tooltip placement="left" title={text}>
<a href="#">左边左边</a>
</Tooltip>
<Tooltip placement="right" title={text}>
<a href="#">右边右边</a>
</Tooltip>
<Tooltip placement="top" title={text}>
<a href="#">上边上边</a>
</Tooltip>
<Tooltip placement="bottom" title={text}>
<a href="#">下边下边</a>
</Tooltip>
</div>
10 years ago
, document.getElementById('components-tooltip-demo-placement'));
````
10 years ago
<style>
#components-tooltip-demo-placement a {
margin-right: 1em;
}
</style>