mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +08:00
e8fa5938ab
* site: use CSS logical properties * Update components/anchor/demo/targetOffset.tsx Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: lijianan <574980606@qq.com> * fix: fix * fix: fix * chore: fix * fix: add more * fix: add more --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: afc163 <afc163@gmail.com>
24 lines
553 B
Markdown
Executable File
24 lines
553 B
Markdown
Executable File
## zh-CN
|
|
|
|
位置有十二个方向。如需箭头指向目标元素中心,可以设置 `arrow: { pointAtCenter: true }`。
|
|
|
|
## en-US
|
|
|
|
There are 12 `placement` options available. Use `arrow: { pointAtCenter: true }` if you want the arrow to point at the center of target.
|
|
|
|
<style>
|
|
#popconfirm-demo-placement .ant-btn {
|
|
margin-inline-start: 0;
|
|
margin-inline-end: 8px;
|
|
margin-bottom: 8px;
|
|
width: 70px;
|
|
text-align: center;
|
|
padding: 0;
|
|
}
|
|
|
|
#popconfirm-demo-placement .ant-btn-rtl {
|
|
margin-inline-start: 8px;
|
|
margin-inline-end: 0;
|
|
}
|
|
</style>
|