@ -16,7 +16,7 @@ React.render(
, document.getElementById('components-badge-demo-basic'));
````
<style>
````css
.ant-badge {
margin-right: 16px;
}
@ -27,4 +27,4 @@ React.render(
background: #eee;
display: inline-block;
</style>
@ -9,11 +9,14 @@
````jsx
var Badge = antd.Badge;
React.render(
React.render(<div>
<Badge dot={true}>
<i className="anticon anticon-notification"></i>
</Badge>
, document.getElementById('components-badge-demo-dot'));
<a href="#">一个链接</a>
</div>, document.getElementById('components-badge-demo-dot'));
@ -3,6 +3,7 @@
.@{badge-prefix-cls} {
position: relative;
line-height: 1;
&-count {
position: absolute;