When using the default code from http://www.addthis.com/ with Twitter's Bootstrap 3 the right border of the counter is missing:
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
Twitter's Bootstrap 3 use a CSS's universal selector to set box-sizing (see: https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing) to border-box. This will be save cause support for IE7 has been dropped. This selector breaks the AddThis counter.
The counter is set by:
<a class="addthis_counter addthis_bubble_style"></a>
.Solution: Reset the box-sizing for the .addthis_counter class. Add the following code after your bootstrap css:
Or Less:
See also: http://getbootstrap.com/getting-started/#third-parties and Why did Bootstrap 3 switch to box-sizing: border-box?