button
元素样式,看起来比纯HTML样式好得多。在您的大型小猫照片下方创建一个新的button
元素。给它btn
和btn-default
类,以及“Like”的文本。 button
元素。
testString: 'assert(new RegExp("like","gi").test($("button").text()) && ($("img.img-responsive + button.btn").length > 0), "Create a new button
element with the text "Like".");'
- text: 你的新按钮应该有两个类: btn
和btn-default
。
testString: 'assert($("button").hasClass("btn") && $("button").hasClass("btn-default"), "Your new button should have two classes: btn
and btn-default
.");'
- text: 确保所有button
元素都有一个结束标记。
testString: 'assert(code.match(/<\/button>/g) && code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: