首页地址:https://www.freecodecamp.org/
GitHub:https://github.com/freeCodeCamp/freeCodeCamp
====================================================================================================================================================
+ 下面所作笔记,都是之前未了解知识,已经掌握的不在此列【刷题范围内】 +
====================================================================================================================================================
1.导入谷歌字体:
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
使用字体:
h2 { font-family: Lobster, Monospace; }
2. !important声明此样式不会被别的样式覆盖


<style> body { background-color: black; font-family: Monospace; color: green; } #orange-text { color: orange; } .pink-text { color: pink !important; } .blue-text { color: blue; } style> <h1 id="orange-text" class="pink-text blue-text" style="color: white">Hello World!h1>
3.bootstrap栅格系统的使用核心思想
①将要放在同一个栅格系统的元素都放在一个div中,div的class="row"
②每一个或者几个要占12格中几格的元素,都要用一个div将这一个或多个元素包裹起来。然后给这个div的class="col-xs-*"的比重
4.导入Font Awesome 矢量图库
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
使用
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up">i>Likebutton>
5.bootstarp一种class名为class=“well”,深度视觉感


<div class="container-fluid"> <h3 class="text-primary text-center">jQuery Playgroundh3> <div class="row"> <div class="col-xs-6"> <div class="well"> div> div> <div class="col-xs-6"> <div class="well"> div> div> div> div>
6.Animate.css一款预设的CSS动画
Animate.css官网地址:https://daneden.github.io/animate.css/
Animate.css中文演示地址:http://www.jq22.com/jquery-info819
7.【jQuery】添加标签 着重强调此文本
$("#target4").html("<em>#target4em>");
8.【jQuery】appendTo() 移动一个元素到另一个地方
$("#target2").appendTo("#right-well");
9.【jQuery】克隆方法clone()和appendTo()一起使用
$("#target5").clone().appendTo("#left-well");
10.【jQuery】:nth-child()选择器 获取本类元素的第几个元素
$(".target:nth-child(2)").addClass("animated bounce");
找到class为target的同类元素中的第二个元素 为这个元素添加class
11.【jQuery】:even奇数选择器 :odd偶数选择器
本类元素的奇数或偶数个被选中
$(".target:even").addClass("animated shake");
12.【CodePen】代码笔
官方地址:https://codepen.io/
写代码入口:https://codepen.io/pen
13.Read-Search-Ask方法
正确使用Read-Search-Ask方法,切记!!
14.Markdown文本编辑的标记语言
15.【bootstrap】多个栅格系统的同时使用
<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
用以适用多个情况下,各个分辨率时的不同的情况。
16.【bootstrap】内联列表 .list-inline
城市: <ul class="list-inline"> <li>北京li> <li>上海li> <li>南京li> <li>厦门li> ul>
17.【bootstrap】去点列表 .list-unstyled
<ol class="list-unstyled"> <li>不带项目编号li> <li>不带项目编号li> ol>
18.【bootstrap】水平列表 .dl-horizontal
<dl class="dl-horizontal"> <dt>标题1:dt> <dd>描述内容12312312321dd> <dt>标题2:dt> <dd>描述内容233129878987dd> dl>
19.【bootstrap】三种 代码在页面展示方式


一共有三种代码样式: <hr/> 第一种:单行代码或单词 <code><code>code> <code><pre>code> <code><kbd>code> <hr/> 第二种:代码块 <pre> <ul> <li>...</li> <li>...</li> <li>...</li> </ul> pre> <hr/> 第三种:用户要通过键盘输入的内容 <p>请使用<kbd>ctrl+xkbd>复制代码,然后使用<kbd>ctrl+shift+vkbd>将复制的代码粘贴到需要的地方。p>
20.【bootstrap】代码块最大高度340,超过出滚动条 .pre-scrollable


<pre class="pre-scrollable"> <ol> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> <li>....li> ol> pre>
21.【bootstrap】表格类型 table
☑ .table:基础表格
☑ .table-striped:斑马线表格
☑ .table-bordered:带边框的表格
☑ .table-hover:鼠标悬停高亮的表格
☑ .table-condensed:紧凑型表格
☑ .table-responsive:响应式表格
22.【bootstrap】table悬浮效果 .table-hover tr颜色样式 .active .success .info .warning .danger


<table class="table table-bordered table-hover"> <thead> <tr> <th>类名th> <th>描述th> tr> thead> <tbody> <tr class="active"> <td>.activetd> <td>表示当前活动的信息td> tr> <tr class="success"> <td>.successtd> <td>表示成功或者正确的行为td> tr> <tr class="info"> <td>.infotd> <td>表示中立的信息或行为td> tr> <tr class="warning"> <td>.warningtd> <td>表示警告,需要特别注意td> tr> <tr class="danger"> <td>.dangertd> <td>表示危险或者可能是错误的行为td> tr> tbody> table>
23.【bootstrap】表单中元素使用.form-control获得效果
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="请输入您的邮箱密码">
24.【bootstrap】role属性的作用---无障碍阅读
25.【bootstrap】form使用.form-horizontal实现水平列表效果 一组元素使用.form-group实现间距效果 单个元素使用.form-control实现圆角、阴影等效果


<form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label">邮箱label> <div class="col-sm-10"> <input type="email" class="form-control" id="inputEmail3" placeholder="请输入您的邮箱地址"> div> div> <div class="form-group"> <label for="inputPassword3" class="col-sm-2 control-label">密码label> <div class="col-sm-10"> <input type="password" class="form-control" id="inputPassword3" placeholder="请输入您的邮箱密码"> div> div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="checkbox"> <label> <input type="checkbox"> 记住密码 label> div> div> div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-default">进入邮箱button> div> div> form>
26.【bootstrap】from表单 from使用.form-inline 实现水平列表 label使用.sr-only 实现不显示 注意checkbox的写法


<form class="form-inline" role="form"> <div class="form-group"> <label class="sr-only" for="exampleInputEmail2">邮箱label> <input type="email" class="form-control" id="exampleInputEmail2" placeholder="请输入你的邮箱地址"> div> <div class="form-group"> <label class="sr-only" for="exampleInputPassword2">密码label> <input type="password" class="form-control" id="exampleInputPassword2" placeholder="请输入你的邮箱密码"> div> <div class="checkbox"> <label> <input type="checkbox" name="aa"> 记住 label> div> <div class="checkbox"> <label> <input type="checkbox" name="aa"> 密码 label> div> <button type="submit" class="btn btn-default">进入邮箱button> form>
27.【bootstrap】下拉框 .form-control 多行展示的下拉框 multiple


<div class="form-group"> <select class="form-control"> <option>1option> <option>2option> <option>3option> <option>4option> <option>5option> select> div> <div class="form-group"> <select multiple class="form-control"> <option>1option> <option>2option> <option>3option> <option>4option> <option>5option> select> div>
28.【bootstrap】单选框 多选框 垂直与水平放置
垂直,平常的样子


<form role="form"> <div class="from-group"> <lable class="radio"> <input type="radio" class="from-control"> 男性 lable> div> <div class="from-group"> <lable class="radio"> <input type="radio" class="from-control"> 女性 lable> div> <div class="from-group"> <lable class="radio"> <input type="radio" class="from-control"> 中性 lable> div> form>
水平放置


<form role="form"> <div class="from-group"> <lable class="radio-inline"> <input type="radio" class="from-control"> 男性 lable> <lable class="radio-inline"> <input type="radio" class="from-control"> 女性 lable> <lable class="radio-inline"> <input type="radio" class="from-control"> 中性 lable> div> form>
29.【bootstrap】表单元素input select textarea 大小正常


<form role="form"> <div class="form-group"> <label class="control-label">控件变大label> <input class="form-control input-lg" type="text" placeholder="添加.input-lg,控件变大"> div> <div class="form-group"> <label class="control-label">正常大小label> <input class="form-control" type="text" placeholder="正常大小"> div> <div class="form-group"> <label class="control-label">控件变小label> <input class="form-control input-sm" type="text" placeholder="添加.input-sm,控件变小"> div> form>
30.【bootstrap】表单禁用 disabled+ 打包显示的表单元素使用