我正在写一个标记:

将每条推文呈现为文章还是篇幅太短都是正确的,我应该使用ul还是别的?
<section>
<h1>Recent tweets</h1>
<article>
<p>I'm looking...</p>
<time>3 day ago</time>
</article>
<article>
<p>@mediatemple will ...</p>
<time>6 days ago</time>
</article>
<article>
<p>Corpora Business</p>
<time>10 days ago</time>
</article>
</section>
Run Code Online (Sandbox Code Playgroud) 我想像http://desandro.github.io/3dtransforms/examples/card-01.html那样翻转
但每边都有按钮.所以这是我的HTML
<div class="flip-container">
<div class="flip">
<div class="side front">
<p>front</p>
<button class="front-flip-button">flip</button>
</div>
<div class="side back">
<p>back</p>
<button class="back-flip-button">flip</button>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
和css
.flip-container{
position: relative;
-webkit-perspective: 800;
width: 500px;
height: 300px;
}
.flip{
position: absolute;
width: inherit;
height: inherit;
-webkit-transform-style: preserve-3d;
-webkit-transition-duration: 500ms;
-webkit-transform: translate3d(0, 0, 0);
border: 1px solid;
}
.side{
position: absolute;
width: inherit;
height: inherit;
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
}
.flip.flipped,
.back{
-webkit-transform: rotate3d(0, 1, 0, 180deg);
}
.back-flip-button,
.front-flip-button{
position: absolute; …Run Code Online (Sandbox Code Playgroud) .content p, .content ul, .content h1 {
text-indent: 35px;
}
Run Code Online (Sandbox Code Playgroud)
这个选择器有没有快捷方式,比如.content p, ul, h1 {}?
什么是更好地在javascript中使用以平衡某些值.
Math.pow
Math.pow((circle2.x - circle1.x), 2)
Run Code Online (Sandbox Code Playgroud)
或者我自己的功能
square(circle2.x - circle1.x);
function square(a){
return a*a;
}
Run Code Online (Sandbox Code Playgroud)