btn-danger
es el color del botón que usarás para notificar a los usuarios que el botón realiza una acción destructiva, como eliminar una foto de gato. Crea un botón con el texto "Eliminar" y dale la clase btn-danger
. Tenga en cuenta que estos botones aún necesitan las clases btn
y btn-block
. button
con el texto "Eliminar".
testString: 'assert(new RegExp("Delete","gi").test($("button").text()), "Create a new button
element with the text "Delete".");'
- text: Todos los botones de Bootstrap deben tener las clases btn
y btn-block
.
testString: 'assert($("button.btn-block.btn").length > 2, "All of your Bootstrap buttons should have the btn
and btn-block
classes.");'
- text: Tu nuevo botón debe tener la clase btn-danger
.
testString: 'assert($("button").hasClass("btn-danger"), "Your new button should have the class btn-danger
.");'
- text: Asegúrese de que todos los elementos de sus button
tengan una etiqueta de cierre.
testString: 'assert(code.match(/<\/button>/g) && code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: