I'm using bootstrap, and the CSS is responsive, so it scales down nicely on smaller devices. However, I would like buttons to shrink too when the viewport is smaller (eg. on mobile).
<button name="button" type="submit" id="edit_button-46" class="btn btn-default" value="edit" >Edit</button>
Basically on smaller devices, the class btn-xs should be added to all buttons.
I can probably accomplish this via Jquery, but was wondering if bootstrap already had this functionality?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…