JQuery UI Buttons and Binding Tags

If you look at the buttons demo page, you will see that the anchor tag is slightly different in size than the other two (at least in chrome). This is due to the default styles used by the browser.

See: http://jqueryui.com/demos/button/

Is there a quick and easy fix to make the snap buttons look exactly like regular buttons?

+3
source share
1 answer

If you modify or redefine (recommended) the vertical filling of line 18 of jquery.ui.button.css, you can fix it. Here is the current block:

.ui-button-text-only .ui-button-text {
    padding: 0.4em 1em;
}

Here's a potential fix:

.ui-button-text-only .ui-button-text {
    padding: 0.3em 1em;
}

Webkit, , .

+4

Source: https://habr.com/ru/post/1773333/


All Articles