- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在查看漂亮的时间线脚本并想使用,我根据我的设计对 css 进行了一些更改,但我想知道是否可以在滚动页面时将事件年份的颜色从灰色更改为红色,
我查看了代码,发现当页面滚动时,没有更改任何类来反射(reflect)事件年份的粘性行为。
#timeline h3 {
position: -webkit-sticky;
position: sticky;
top: 5rem;
color: #888;
margin: 0;
font-size: 1em;
font-weight: 400;
}
@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Fira+Sans:200,400,500);
* {
border: 0;
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: inherit;
display: flex;
flex-direction: column;
font-family: 'Fira Sans', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #79838c;
}
a {
color: #50585f;
text-decoration: none;
}
a:hover {
color: #383e44;
}
div.container {
display: flex;
flex: auto;
flex-direction: column;
max-height: 100%;
}
div.header {
height: auto;
text-align: center;
background: slategrey;
color: ghostwhite;
padding: 2.3rem 1rem 2.3rem 1rem;
position: relative;
}
div.header:after {
content: '';
position: absolute;
bottom: -5rem;
left: 0rem;
height: 5.1rem;
display: block;
width: 100%;
z-index: 300;
background: -moz-linear-gradient(top, white 20%, rgba(255, 255, 255, 0) 100%);
/* FF3.6-15 */
background: -webkit-linear-gradient(top, white 20%, rgba(255, 255, 255, 0) 100%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, white 20%, rgba(255, 255, 255, 0) 100%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
/* IE6-9 */
}
div.header h1 {
margin-top: .8rem;
margin-bottom: .5rem;
font-weight: 200;
font-size: 1.6em;
letter-spacing: 0.1rem;
text-transform: uppercase;
}
@media (min-width: 62em) {
div.header h1 {
font-size: 1.9em;
letter-spacing: 0.2rem;
}
}
div.header h2 {
font-size: 1.1em;
font-weight: 400;
color: #cfd7de;
max-width: 30rem;
margin: auto;
}
div.item {
display: flex;
flex: auto;
overflow-y: auto;
padding: 0rem 1rem 0rem 1rem;
}
#timeline {
position: relative;
display: table;
height: 100%;
margin-left: auto;
margin-right: auto;
margin-top: 5rem;
}
#timeline div:after {
content: '';
width: 2px;
position: absolute;
top: .5rem;
bottom: 0rem;
left: 60px;
z-index: 1;
background: #C5C5C5;
}
#timeline h3 {
position: -webkit-sticky;
position: sticky;
top: 5rem;
color: #888;
margin: 0;
font-size: 1em;
font-weight: 400;
}
@media (min-width: 62em) {
#timeline h3 {
font-size: 1.1em;
}
}
#timeline section.year {
position: relative;
}
#timeline section.year:first-child section {
margin-top: -1.3em;
padding-bottom: 0px;
}
#timeline section.year section {
position: relative;
padding-bottom: 1.25em;
margin-bottom: 2.2em;
}
#timeline section.year section h4 {
position: absolute;
bottom: 0;
font-size: .9em;
font-weight: 400;
line-height: 1.2em;
margin: 0;
padding: 0 0 0 89px;
color: #C5C5C5;
}
@media (min-width: 62em) {
#timeline section.year section h4 {
font-size: 1em;
}
}
#timeline section.year section ul {
list-style-type: none;
padding: 0 0 0 75px;
margin: -1.35rem 0 1em;
max-width: 32rem;
font-size: 1em;
}
@media (min-width: 62em) {
#timeline section.year section ul {
font-size: 1.1em;
padding: 0 0 0 81px;
}
}
#timeline section.year section ul:last-child {
margin-bottom: 0;
}
#timeline section.year section ul:first-of-type:after {
content: '';
width: 10px;
height: 10px;
background: #C5C5C5;
border: 2px solid #FFFFFF;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
border-radius: 50%;
position: absolute;
left: 54px;
top: 3px;
z-index: 2;
}
#timeline section.year section ul li {
margin-left: .5rem;
}
#timeline section.year section ul li:before {
content: '·';
margin-left: -.5rem;
padding-right: .3rem;
}
#timeline section.year section ul li:not(:first-child) {
margin-top: .5rem;
}
#timeline section.year section ul li span.price {
color: mediumturquoise;
font-weight: 500;
}
#price {
display: inline;
}
svg {
border: 3px solid white;
border-radius: 50%;
box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Bitcoin timeline with fixed header using flexbox</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div class="container">
<div class="item">
<div id="timeline">
<div>
<section class="year">
<h3>2007</h3>
<section>
<ul>
<li>Satoshi Nakamoto began working on the Bitcoin concept.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2008</h3>
<section>
<h4>August</h4>
<ul>
<li>Neal Kin, Vladimir Oksman, and Charles Bry file an application for an encryption patent application.</li>
<li>Bitcoin.org was registered at <a href="https://anonymousspeech.com/">anonymousspeech.com</a>.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>Nakamoto describes the Bitcoin currency and solves the problem of double spending.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>The Bitcoin project is registered on <a href="https://sourceforge.net/">SourceForge.net</a>.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2009</h3>
<section>
<h4>January</h4>
<ul>
<li>Block 0 is established.</li>
<li>Version 0.1 of Bitcoin is released.</li>
<li>The first Bitcoin transaction.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>An exchange rate is established.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Version 0.2 is released.</li>
<li>The difficulty increases.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2010</h3>
<section>
<h4>February</h4>
<ul>
<li>The Bitcoin Market is established as a Bitcoin currency exchange.</li>
<li>Encryption patent is published.</li>
</ul>
</section>
<section>
<h4>May</h4>
<ul>
<li>The first real-world transaction using 10,000 BTC spent on pizza.</li>
</ul>
</section>
<section>
<h4>July</h4>
<ul>
<li>Version 0.3 released.</li>
<li>In five days, the price grew 1000%, rising from <span class="price">$0.008</span> to <span class="price">$0.08</span> for 1 bitcoin.</li>
<li>The MtGox Bitcoin currency exchange market is established.</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Exploit generates 184 billion Bitcoins.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>Financial task force issues warning.</li>
<li>The first public version of an OpenCL miner is released.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Market cap exceeds $1 million USD.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Bitcoind compiled for Nokia N900.</li>
<li>First mobile Bitcoin transaction.</li>
<li>Difficulty increases.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2011</h3>
<section>
<h4>January</h4>
<ul>
<li>Silk Road opens for business.</li>
<li>25% of total Bitcoins generated.</li>
</ul>
</section>
<section>
<h4>February</h4>
<ul>
<li>Bitcoin reaches parity with US dollar.</li>
<li><a href="https://weusecoins.com/">WeUseCoins.com</a> is created.</li>
</ul>
</section>
<section>
<h4>March</h4>
<ul>
<li>Second largest decrease in difficulty.</li>
<li>Britcoin opens for trading.</li>
<li>Bitcoin Brasil opens.</li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Bitcoin passes parity with Euro.</li>
<li>Difficulty surpasses 100,000.</li>
</ul>
</section>
<section>
<h4>June</h4>
<ul>
<li>Bitcoin Market drops PayPal.</li>
<li>The largest percentage price decrease to-date became known as the Great Bubble of 2011. Top of bubble at <span class="price">$31.</span></li>
<li>WikiLeaks starts accepting Bitcoin.</li>
<li>Major breach of security at MtGox.</li>
<li>Difficulty passes 1 million.</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Bitcoin Conference and World Expo in New York City, NY.</li>
<li>P2Pool mines its first block.</li>
<li>Back-to-back drop in difficulty.</li>
</ul>
</section>
<section>
<h4>September</h4>
<ul>
<li>Casascius coins mint physical Bitcoins.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Bitcoin & Future Technology European Conference in Prague, Czech Republic.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li><span class="price">$2</span> minimum price after the first price drop.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2012</h3>
<section>
<h4>September</h4>
<ul>
<li>London 2012 Bitcoin Conference.</li>
<li>Bitcoin Foundation begins.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Slowly rising for a year. Price at <span class="price">$13.</span></li>
</ul>
</section>
</section>
<section class="year">
<h3>2013</h3>
<section>
<h4>February</h4>
<ul>
<li>Version 0.8 released.</li>
<li>Bitcoin goes up to <span class="price">$30.</span></li>
</ul>
</section>
<section>
<h4>March</h4>
<ul>
<li>Bitcoin spikes to $74.90.</li>
<li>Market cap reaches $1 billion.</li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Bitcoin surpasses <span class="price">$100.</span></li>
<li>Price hits an all-time high of <span class="price">$266.</span></li>
<li>Bitcoin Central is hacked.</li>
</ul>
</section>
<section>
<h4>May</h4>
<ul>
<li>First Bitcoin ATM unveiled.</li>
<li>Bitcoin Central gets hacked again.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>FBI shuts down Silk Road.</li>
<li>Bitcoin price drops from <span class="price">$139</span> to <span class="price">$109.71</span> in less than three hours after Silk Road closure, recovers.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Bitcoin price surges to a new all-time record of <span class="price">$1242.</span></li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Price crashed to <span class="price">$600</span>, rebounded to <span class="price">$1000</span>, crashed again to the <span class="price">$500</span> range. Stabilized in between.</li>
<li>China's Central Bank bans Bitcoin transactions.</li>
<li>The network exceeded 10 petahash/sec.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2014</h3>
<section>
<h4>January</h4>
<ul>
<li>Price spiked to <span class="price">$1000</span>, then settled in the <span class="price">$800–$900</span>range.</li>
</ul>
</section>
<section>
<h4>March</h4>
<ul>
<li>Version 0.9 released.</li>
</ul>
</section>
<section>
<h4>June</h4>
<ul>
<li>The network exceeded 100 petahash/sec.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Microsoft began to accept bitcoin to buy Xbox games and Windows apps.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2015</h3>
<section>
<h4>February</h4>
<ul>
<li>Version 0.10 released.</li>
</ul>
</section>
<section>
<h4>July</h4>
<ul>
<li>Version 0.11 released.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>2015 record high of <span class="price">$504.</span></li>
</ul>
</section>
</section>
<section class="year">
<h3>2016</h3>
<section>
<h4>January</h4>
<ul>
<li>Price at <span class="price">$1150</span> per bitcoin.</li>
<li>Price fell 30% in a week, reaching a multi-month low of <span class="price">$750.</span></li>
<li>The network exceeded 1 exahash/sec.</li>
</ul>
</section>
<section>
<h4>February</h4>
<ul>
<li>Version 0.12 released.</li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Steam started accepting bitcoin as payment.</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Version 0.13 released.</li>
</ul>
</section>
<section>
<h4>September</h4>
<ul>
<li>There are 770 bitcoin ATMs worldwide.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2017</h3>
<section>
<h4>March</h4>
<ul>
<li>Version 0.14 released.</li>
<li>The price of 1 bitcoin surpassed the spot price of an ounce of gold for the first time.</li>
<li>The number of GitHub projects related to bitcoin passed 10,000.</li>
<li>Price traded above <span class="price">$1290.</span></li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Japan Declares Bitcoin as Legel Tender</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Bitcoin "splits" into Bitcoin (BTC) and Bitcoin Cash (BCH)</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Bitcoin for the first time hit <span class="price">$10,000</span></li>
</ul>
</section>
</section>
<section class="year">
<h3>2019</h3>
<section>
<h4>Today</h4>
<ul>
<li>At the moment, one bitcoin cost:
<span class="price">
<div id="price"></div>.
</span>
</li>
</ul>
</section>
</section>
</div>
</div>
</div>
</div>
<!-- partial -->
<script >
</script>
</body>
</html>
最佳答案
好的,这是一个想法,希望你能做到
isInViewport
检查元素是否在视口(viewport)中 markActive
查询所有年份元素删除以前的事件类并循环查找视口(viewport)中的第一个元素,将其标记为事件markActive
您时间线中的活跃年份。去抖它,所以我们不会在主线程上做很多处理。 markActive
方法 window.onload
用于在页面加载时标记时间轴中的事件年份 window.onload = markActive;
container.addEventListener('scroll', function (e){
setTimeout(markActive, 0)
});
function markActive() {
activeYear.classList.remove('active');
//const timelines = document.querySelectorAll('section.year > h3'); //es6
var timelines = Array.prototype.slice.call(document.querySelectorAll('section.year > h3'));//ES5
for(let i=0; i<timelines.length; i++) {
if(isInViewport(timelines[i])) {
timelines[i].classList.add('active');
return;
}
}
}
window.onload = markActive; // when page loads
var debounce = 0;
document.querySelector('.item').addEventListener('scroll', function (e) {
if(debounce){
clearTimeout(debounce);
}
debounce = setTimeout(markActive, 0);
});
function markActive() {
var activeYear = document.querySelector('.active');
if(activeYear){
activeYear.classList.remove('active');
}
// work on a detached list
//const timelines = document.querySelectorAll('section.year > h3'); //es6
var timelines = Array.prototype.slice.call(document.querySelectorAll('section.year > h3'));//ES5
for(var i=0; i<timelines.length; i++) {
if(isInViewport(timelines[i])) {
timelines[i].classList.add('active');
break;
}
}
}
function isInViewport(elem) {
var bounding = elem.getBoundingClientRect();
return (
bounding.top >= 0 &&
bounding.left >= 0 &&
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
bounding.right <= (window.innerWidth || document.documentElement.clientWidth)
);
}
@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Fira+Sans:200,400,500);
* {
border: 0;
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: inherit;
display: flex;
flex-direction: column;
font-family: 'Fira Sans', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #79838c;
}
a {
color: #50585f;
text-decoration: none;
}
a:hover {
color: #383e44;
}
div.container {
display: flex;
flex: auto;
flex-direction: column;
max-height: 100%;
}
div.header {
height: auto;
text-align: center;
background: slategrey;
color: ghostwhite;
padding: 2.3rem 1rem 2.3rem 1rem;
position: relative;
}
div.header:after {
content: '';
position: absolute;
bottom: -5rem;
left: 0rem;
height: 5.1rem;
display: block;
width: 100%;
z-index: 300;
background: -moz-linear-gradient(top, white 20%, rgba(255, 255, 255, 0) 100%);
/* FF3.6-15 */
background: -webkit-linear-gradient(top, white 20%, rgba(255, 255, 255, 0) 100%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, white 20%, rgba(255, 255, 255, 0) 100%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
/* IE6-9 */
}
div.header h1 {
margin-top: .8rem;
margin-bottom: .5rem;
font-weight: 200;
font-size: 1.6em;
letter-spacing: 0.1rem;
text-transform: uppercase;
}
@media (min-width: 62em) {
div.header h1 {
font-size: 1.9em;
letter-spacing: 0.2rem;
}
}
div.header h2 {
font-size: 1.1em;
font-weight: 400;
color: #cfd7de;
max-width: 30rem;
margin: auto;
}
div.item {
display: flex;
flex: auto;
overflow-y: auto;
padding: 0rem 1rem 0rem 1rem;
}
#timeline {
position: relative;
display: table;
height: 100%;
margin-left: auto;
margin-right: auto;
margin-top: 5rem;
}
#timeline div:after {
content: '';
width: 2px;
position: absolute;
top: .5rem;
bottom: 0rem;
left: 60px;
z-index: 1;
background: #C5C5C5;
}
#timeline h3 {
position: -webkit-sticky;
position: sticky;
top: 5rem;
color: #888;
margin: 0;
font-size: 1em;
font-weight: 400;
}
#timeline h3.active {
color: green;
font-weight: bold;
}
@media (min-width: 62em) {
#timeline h3 {
font-size: 1.1em;
}
}
#timeline section.year {
position: relative;
}
#timeline section.year:first-child section {
margin-top: -1.3em;
padding-bottom: 0px;
}
#timeline section.year section {
position: relative;
padding-bottom: 1.25em;
margin-bottom: 2.2em;
}
#timeline section.year section h4 {
position: absolute;
bottom: 0;
font-size: .9em;
font-weight: 400;
line-height: 1.2em;
margin: 0;
padding: 0 0 0 89px;
color: #C5C5C5;
}
@media (min-width: 62em) {
#timeline section.year section h4 {
font-size: 1em;
}
}
#timeline section.year section ul {
list-style-type: none;
padding: 0 0 0 75px;
margin: -1.35rem 0 1em;
max-width: 32rem;
font-size: 1em;
}
@media (min-width: 62em) {
#timeline section.year section ul {
font-size: 1.1em;
padding: 0 0 0 81px;
}
}
#timeline section.year section ul:last-child {
margin-bottom: 0;
}
#timeline section.year section ul:first-of-type:after {
content: '';
width: 10px;
height: 10px;
background: #C5C5C5;
border: 2px solid #FFFFFF;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
border-radius: 50%;
position: absolute;
left: 54px;
top: 3px;
z-index: 2;
}
#timeline section.year section ul li {
margin-left: .5rem;
}
#timeline section.year section ul li:before {
content: '·';
margin-left: -.5rem;
padding-right: .3rem;
}
#timeline section.year section ul li:not(:first-child) {
margin-top: .5rem;
}
#timeline section.year section ul li span.price {
color: mediumturquoise;
font-weight: 500;
}
#price {
display: inline;
}
svg {
border: 3px solid white;
border-radius: 50%;
box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Bitcoin timeline with fixed header using flexbox</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div class="container">
<div class="item">
<div id="timeline">
<div>
<section class="year">
<h3>2007</h3>
<section>
<ul>
<li>Satoshi Nakamoto began working on the Bitcoin concept.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2008</h3>
<section>
<h4>August</h4>
<ul>
<li>Neal Kin, Vladimir Oksman, and Charles Bry file an application for an encryption patent application.</li>
<li>Bitcoin.org was registered at <a href="https://anonymousspeech.com/">anonymousspeech.com</a>.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>Nakamoto describes the Bitcoin currency and solves the problem of double spending.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>The Bitcoin project is registered on <a href="https://sourceforge.net/">SourceForge.net</a>.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2009</h3>
<section>
<h4>January</h4>
<ul>
<li>Block 0 is established.</li>
<li>Version 0.1 of Bitcoin is released.</li>
<li>The first Bitcoin transaction.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>An exchange rate is established.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Version 0.2 is released.</li>
<li>The difficulty increases.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2010</h3>
<section>
<h4>February</h4>
<ul>
<li>The Bitcoin Market is established as a Bitcoin currency exchange.</li>
<li>Encryption patent is published.</li>
</ul>
</section>
<section>
<h4>May</h4>
<ul>
<li>The first real-world transaction using 10,000 BTC spent on pizza.</li>
</ul>
</section>
<section>
<h4>July</h4>
<ul>
<li>Version 0.3 released.</li>
<li>In five days, the price grew 1000%, rising from <span class="price">$0.008</span> to <span class="price">$0.08</span> for 1 bitcoin.</li>
<li>The MtGox Bitcoin currency exchange market is established.</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Exploit generates 184 billion Bitcoins.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>Financial task force issues warning.</li>
<li>The first public version of an OpenCL miner is released.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Market cap exceeds $1 million USD.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Bitcoind compiled for Nokia N900.</li>
<li>First mobile Bitcoin transaction.</li>
<li>Difficulty increases.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2011</h3>
<section>
<h4>January</h4>
<ul>
<li>Silk Road opens for business.</li>
<li>25% of total Bitcoins generated.</li>
</ul>
</section>
<section>
<h4>February</h4>
<ul>
<li>Bitcoin reaches parity with US dollar.</li>
<li><a href="https://weusecoins.com/">WeUseCoins.com</a> is created.</li>
</ul>
</section>
<section>
<h4>March</h4>
<ul>
<li>Second largest decrease in difficulty.</li>
<li>Britcoin opens for trading.</li>
<li>Bitcoin Brasil opens.</li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Bitcoin passes parity with Euro.</li>
<li>Difficulty surpasses 100,000.</li>
</ul>
</section>
<section>
<h4>June</h4>
<ul>
<li>Bitcoin Market drops PayPal.</li>
<li>The largest percentage price decrease to-date became known as the Great Bubble of 2011. Top of bubble at <span class="price">$31.</span></li>
<li>WikiLeaks starts accepting Bitcoin.</li>
<li>Major breach of security at MtGox.</li>
<li>Difficulty passes 1 million.</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Bitcoin Conference and World Expo in New York City, NY.</li>
<li>P2Pool mines its first block.</li>
<li>Back-to-back drop in difficulty.</li>
</ul>
</section>
<section>
<h4>September</h4>
<ul>
<li>Casascius coins mint physical Bitcoins.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Bitcoin & Future Technology European Conference in Prague, Czech Republic.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li><span class="price">$2</span> minimum price after the first price drop.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2012</h3>
<section>
<h4>September</h4>
<ul>
<li>London 2012 Bitcoin Conference.</li>
<li>Bitcoin Foundation begins.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Slowly rising for a year. Price at <span class="price">$13.</span></li>
</ul>
</section>
</section>
<section class="year">
<h3>2013</h3>
<section>
<h4>February</h4>
<ul>
<li>Version 0.8 released.</li>
<li>Bitcoin goes up to <span class="price">$30.</span></li>
</ul>
</section>
<section>
<h4>March</h4>
<ul>
<li>Bitcoin spikes to $74.90.</li>
<li>Market cap reaches $1 billion.</li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Bitcoin surpasses <span class="price">$100.</span></li>
<li>Price hits an all-time high of <span class="price">$266.</span></li>
<li>Bitcoin Central is hacked.</li>
</ul>
</section>
<section>
<h4>May</h4>
<ul>
<li>First Bitcoin ATM unveiled.</li>
<li>Bitcoin Central gets hacked again.</li>
</ul>
</section>
<section>
<h4>October</h4>
<ul>
<li>FBI shuts down Silk Road.</li>
<li>Bitcoin price drops from <span class="price">$139</span> to <span class="price">$109.71</span> in less than three hours after Silk Road closure, recovers.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Bitcoin price surges to a new all-time record of <span class="price">$1242.</span></li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Price crashed to <span class="price">$600</span>, rebounded to <span class="price">$1000</span>, crashed again to the <span class="price">$500</span> range. Stabilized in between.</li>
<li>China's Central Bank bans Bitcoin transactions.</li>
<li>The network exceeded 10 petahash/sec.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2014</h3>
<section>
<h4>January</h4>
<ul>
<li>Price spiked to <span class="price">$1000</span>, then settled in the <span class="price">$800–$900</span>range.</li>
</ul>
</section>
<section>
<h4>March</h4>
<ul>
<li>Version 0.9 released.</li>
</ul>
</section>
<section>
<h4>June</h4>
<ul>
<li>The network exceeded 100 petahash/sec.</li>
</ul>
</section>
<section>
<h4>December</h4>
<ul>
<li>Microsoft began to accept bitcoin to buy Xbox games and Windows apps.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2015</h3>
<section>
<h4>February</h4>
<ul>
<li>Version 0.10 released.</li>
</ul>
</section>
<section>
<h4>July</h4>
<ul>
<li>Version 0.11 released.</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>2015 record high of <span class="price">$504.</span></li>
</ul>
</section>
</section>
<section class="year">
<h3>2016</h3>
<section>
<h4>January</h4>
<ul>
<li>Price at <span class="price">$1150</span> per bitcoin.</li>
<li>Price fell 30% in a week, reaching a multi-month low of <span class="price">$750.</span></li>
<li>The network exceeded 1 exahash/sec.</li>
</ul>
</section>
<section>
<h4>February</h4>
<ul>
<li>Version 0.12 released.</li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Steam started accepting bitcoin as payment.</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Version 0.13 released.</li>
</ul>
</section>
<section>
<h4>September</h4>
<ul>
<li>There are 770 bitcoin ATMs worldwide.</li>
</ul>
</section>
</section>
<section class="year">
<h3>2017</h3>
<section>
<h4>March</h4>
<ul>
<li>Version 0.14 released.</li>
<li>The price of 1 bitcoin surpassed the spot price of an ounce of gold for the first time.</li>
<li>The number of GitHub projects related to bitcoin passed 10,000.</li>
<li>Price traded above <span class="price">$1290.</span></li>
</ul>
</section>
<section>
<h4>April</h4>
<ul>
<li>Japan Declares Bitcoin as Legel Tender</li>
</ul>
</section>
<section>
<h4>August</h4>
<ul>
<li>Bitcoin "splits" into Bitcoin (BTC) and Bitcoin Cash (BCH)</li>
</ul>
</section>
<section>
<h4>November</h4>
<ul>
<li>Bitcoin for the first time hit <span class="price">$10,000</span></li>
</ul>
</section>
</section>
<section class="year">
<h3>2019</h3>
<section>
<h4>Today</h4>
<ul>
<li>At the moment, one bitcoin cost:
<span class="price">
<div id="price"></div>.
</span>
</li>
</ul>
</section>
</section>
</div>
</div>
</div>
</div>
<!-- partial -->
<script >
</script>
</body>
</html>
关于javascript - 激活时更改粘性文本的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58180089/
表架构 DROP TABLE bla; CREATE TABLE bla (id INTEGER, city INTEGER, year_ INTEGER, month_ INTEGER, val I
我需要拆分字符串/或从具有以下结构的字符串中获取更容易的子字符串。 字符串将来自 window.location.pathname 或 window.location.href,看起来像 text/n
每当将对象添加到数组中时,我都会尝试更新 TextView ,并在 TextView 中显示该文本,如下所示: "object 1" "object 2" 问题是,每次将新对象添加到数组时,它都会覆盖
我目前正在寻找使用 Java 读取网站可见文本并将其存储为纯文本字符串的方法。 换句话说,我想转换成这样: Hello stupid World进入“ Hello World ” 或者类似的东西 Un
我正在尝试以文本和 HTML 格式发送电子邮件,但无法正确发送正确的 header 。特别是,我想设置 Content-Type header ,但我找不到如何为 html 和文本部分单独设置它。 这
我尝试了上面的代码,但我无法绑定(bind)文本,我怎样才能将资源内部文本 bloc
我刚刚完成了 Space Shooter 教程,由于没有 GUIText 对象,所以我创建了 UI.Text 对象并进行了相应的编码。它在统一播放器中有效,但在构建 Web 应用程序后无效。我花了一段
我有这个代码: - (IBAction)setButtonPressed:(id)sender { NSUserDefaults *sharedDefaults = [[NSUserDefau
抱歉标题含糊不清,但我想不出我想在标题中做什么。无论如何,对于图像上的文本,我使用了 JLabel 文本并将其添加到图标中。 JLabel icon = new JLabel(new Imag
关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。 这个问题是由于错别字或无法再重现的问题引起的。虽然类似的问题可能是on-topi
我在将 Twitter 嵌入到我从 HTML 5 转换的 wordpress 运行网站时遇到问题。 我遇到的问题是推文不是我的自定义字体... 这是我无法使用任何 css 定位的 HTML 代码,我正
我正在尝试找到解决由于使用以下形式的代码而导致的冗余字符串连接问题的最佳方法: logger.debug("Entering loop, arg is: " + arg) // @1 在大多数情况下,
我写了这个测试 @Test public void removeRequestTextFromRouteError() throws Exception { String input = "F
我目前正在创建一个正则表达式来拆分所有匹配以下格式的字符串:&[文本],并且需要获取文本。字符串可能类似于:something &[text] &[text] everything &[text] 等
有没有办法将标题文本从一个词变形为另一个词,同时保留两个词中使用的字母?我看过的许多 css 文本动画大多是视觉的,很少有旋转整个单词的。 我想要做的是从一个词过渡,例如“BEACH”到“CHANGE
总结matplotlib绘图如何设置坐标轴刻度大小和刻度。 上代码: ?
我在容器 (1) 中创建了容器 (2)。你能帮忙如何向容器(1)添加文本吗?下面是我的代码 return Scaffold( body: Padding( padding: c
我似乎找不到任何人或任何人这样做过。我试图限制我们使用的图像数量,并想创建一个带有渐变作为其“颜色”的文本,并在其周围设置渐变轮廓/描边 到目前为止,我还没有看到任何将两者结合在一起的东西。 我可以自
我正在为视频游戏暗黑破坏神 2 使用 discord.py 构建一个不和谐机器人。其中一项功能要求机器人从暗黑破坏神 2 屏幕截图中提取项目的名称和属性。我目前正在为此使用 pytesseract,但
我很难弄清楚如何旋转 strip.text theme 中的属性来自 ggplot2 .我使用的是 R 版本 3.4.2 和 ggplot2 版本 2.2.1。 以下是 MWE 的数据。 > dput
我是一名优秀的程序员,十分优秀!