Browse Source

icon button 文案

pull/26/merge
afc163 10 years ago
parent
commit
219675cba7
  1. 32
      components/button/demo/icon.md

32
components/button/demo/icon.md

@ -2,42 +2,44 @@
- order: 4
图标一般放在文字前面,也可以单独存在。
---
````html
<button class="ant-btn ant-btn-primary ant-btn-circle ant-btn-lg">
<span class="anticon anticon-search"></span>
<i class="anticon anticon-search"></i>
</button>
<button class="ant-btn ant-btn-primary ant-btn-lg">
<span class="anticon anticon-search"></span>
<span>大按钮</span>
<i class="anticon anticon-search"></i>
大按钮
</button>
<button class="ant-btn ant-btn-primary ant-btn-circle">
<span class="anticon anticon-search"></span>
<i class="anticon anticon-search"></i>
</button>
<button class="ant-btn ant-btn-primary">
<span class="anticon anticon-search"></span>
<span>中按钮</span>
<i class="anticon anticon-search"></i>
中按钮
</button>
<button class="ant-btn ant-btn-primary ant-btn-circle ant-btn-sm">
<span class="anticon anticon-search"></span>
<i class="anticon anticon-search"></i>
</button>
<button class="ant-btn ant-btn-primary ant-btn-sm">
<span class="anticon anticon-search"></span>
<span>小按钮</span>
<i class="anticon anticon-search"></i>
小按钮
</button>
<p></p>
<button class="ant-btn ant-btn-ghost ant-btn-circle-outline ant-btn-lg">
<span class="anticon anticon-search"></span>
<i class="anticon anticon-search"></i>
</button>
<button class="ant-btn ant-btn-ghost ant-btn-circle-outline">
<span class="anticon anticon-search"></span>
<i class="anticon anticon-search"></i>
</button>
<button class="ant-btn ant-btn-circle-outline ant-btn-sm">
<span class="anticon anticon-search"></span>
<i class="anticon anticon-search"></i>
</button>
````
````

Loading…
Cancel
Save