摘要: <div class="container-fluid"> <h3 class="text-primary text-center">jQuery Playground</h3></div> <div class="well"></div> //Bootstrap 有一个well属性,它能是你创建的 阅读全文
posted @ 2019-06-13 23:30 风一样的man 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 在按钮上使用Font Awesome图标 <i class="fa fa-info-circle"></i> <i class="fa fa-thumbs-up"> <i class="fa fa-trash">//垃圾桶 库 http://fontawesome.dashgame.com/ 阅读全文
posted @ 2019-06-13 21:34 风一样的man 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 使用Bootstrap也非常简单,你只需要把下面的链接添加到你需要使用Bootstrap来进行布局的应用的头部: <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap /3.3.1/css/bootstrap.min.css 阅读全文
posted @ 2019-06-12 23:42 风一样的man 阅读(1676) 评论(0) 推荐(0) 编辑
摘要: <script>$(document).ready(function() {$("#target1").css("color","red");});</script> <!-- Only change code above this line. --> <div class="container-f 阅读全文
posted @ 2019-06-12 22:16 风一样的man 阅读(3495) 评论(0) 推荐(0) 编辑
摘要: <script>$(document).ready(function() {$("button").addClass("animated bounce");$(".well").addClass("animated shake");$("#target3").addClass("animated f 阅读全文
posted @ 2019-06-12 22:12 风一样的man 阅读(4280) 评论(0) 推荐(0) 编辑
摘要: <script>$(document).ready(function() {$("button").addClass("animated bounce");//例如,要让所有的button元素有弹回效果,只要把这段代码写在document ready});</script> <!-- Only ch 阅读全文
posted @ 2019-06-12 21:55 风一样的man 阅读(2498) 评论(0) 推荐(0) 编辑
摘要: <script>$(document).ready(function(){ }); 首先,在页面顶部添加一行script元素,然后在下一行写上结束符。 浏览器会运行script里所有的Javascript,包括jQuery。 在你的script元素里,添加这段代码:$(document).ready 阅读全文
posted @ 2019-06-12 21:52 风一样的man 阅读(319) 评论(0) 推荐(0) 编辑
摘要: <script>function runSlots() {var slotOne;var slotTwo;var slotThree; var images = ["https://www.w3cschool.cn/statics/codecamp/images/9H17QFk.png", "htt 阅读全文
posted @ 2019-06-10 22:19 风一样的man 阅读(574) 评论(0) 推荐(0) 编辑
摘要: var testString = "How many spaces are there in this sentence?"; var expression = /\s+/g; var spaceCount = testString.match(expression).length; 我们也可以使用 阅读全文
posted @ 2019-06-10 21:43 风一样的man 阅读(3879) 评论(0) 推荐(0) 编辑
摘要: var testString = "There are 3 cats but 4 dogs."; var expression = /\d+/g; var digitCount = testString.match(expression).length; //特殊选择器中的一种就是数字选择器\d,意 阅读全文
posted @ 2019-06-10 21:39 风一样的man 阅读(1207) 评论(0) 推荐(0) 编辑