小编Art*_*kyi的帖子

文章> p +时间 - 文章是否太短?

我正在写一个标记:
在此输入图像描述

将每条推文呈现为文章还是篇幅太短都是正确的,我应该使用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)

html html5 semantic-markup

5
推荐指数
1
解决办法
198
查看次数

变换使得3D卡的背面不可点击

我想像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)

css rotation css3 css-transforms

3
推荐指数
1
解决办法
1116
查看次数

使用相同的父级简化css选择器

.content p, .content ul, .content h1 {
       text-indent: 35px;
}
Run Code Online (Sandbox Code Playgroud)

这个选择器有没有快捷方式,比如.content p, ul, h1 {}

                                                                                                 

css css-selectors

2
推荐指数
1
解决办法
114
查看次数

javascript平方

什么是更好地在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)

javascript

0
推荐指数
1
解决办法
462
查看次数