摘要: 在页面顶端增加一行script元素,然后写上结束符, 浏览器会运行script 里所有的Javascript,包括jQuery <script>$(document).ready(function() { 开始,文件准备函数xxxxxxxxx});</script> 结束 所有jQuery方法都是由 阅读全文
posted @ 2017-11-27 20:46 萹豆 阅读(207) 评论(0) 推荐(0) 编辑
摘要: class="container-fluid"控制宽度100% <div class="container-fluid"> <h3 class="text-primary text-center">jQuery Playground</h3> </div> class 属性 well,它的作用是为设 阅读全文
posted @ 2017-11-27 17:59 萹豆 阅读(142) 评论(0) 推荐(0) 编辑
摘要: text-primary 属性值使标题直接变成了红色,text-center使标题直接居中 <h2 class="text-primary text-center">CatPhotoApp</h2> img-responsive 使图片变成响应式自动调整大小适应屏幕 <img src="/image 阅读全文
posted @ 2017-11-27 15:31 萹豆 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 需要通过添加下列代码到你的HTML开头来将Bootstrap添加到任意应用中: <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap.min.css"/> 再把html元素都放到div元素中 <img 阅读全文
posted @ 2017-11-27 00:01 萹豆 阅读(177) 评论(0) 推荐(0) 编辑