Answer the question
In order to leave comments, you need to log in
How to connect less in bootstrap to display a button?
Good day!
Maybe I don’t understand something, but I’m trying to tweak the main.less buttons from bootstrap in the file
@import "../lib/bootstrap/less/mixins/buttons.less";
.btn-dark {
.button-variant(@color: @white, @background: @black, @border: 0;)
}
Answer the question
In order to leave comments, you need to log in
@import (reference) '../lib/bootstrap/less/bootstrap.less';
@import "../lib/bootstrap/less/mixins/buttons.less";
.btn-dark {
.button-variant(#fff, #e36d00, #737373);
}
getElementsByTagName возвращает массив элементов.
пилите цикл, это вам не jquery
getElementsByTagName('p') возвращает множество объектов,
чтобы повесить onclick надо пройтись по полученному массиву.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question