“身体> *"在CSS中意味着什么? [英] What does "body > *" mean in CSS?

查看:66
本文介绍了“身体> *"在CSS中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解jQTouch实现的CSS效果. http://www.jqtouch.com/

I am trying to understand the CSS effects that jQTouch implements. http://www.jqtouch.com/

它具有一些CSS定义,其中包含类似body > *

It has some CSS definitions that contain syntax like body > *

body > * {
    -webkit-backface-visibility: hidden;
    -webkit-box-sizing: border-box;
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    -webkit-transform: translate3d(0,0,0) rotate(0) scale(1);
    min-height: 420px !important;
}
body.fullscreen > * {
    min-height: 460px !important;
}
body.fullscreen.black-translucent > * {
    min-height: 480px !important;
}
body.landscape > * {
    min-height: 320px;
}
body > .current {
    display: block !important;
}

我搜索了一段时间,但找不到任何提示.有人可以向我解释吗?

I have searched around for some time, but can't find any hint. Could someone explain it to me?

这是否意味着动画?

推荐答案

body > *表示"body标签的任何直接子代",例如考虑以下情况

body > * means "any direct child of the body tag", e.g. consider the following scenario

<body>
    <h1>This will be affected by body > *</h1>
    <div>
        This also
        <p>This will not be affected, because it is not a direct child</p>
    </div>
</body>

这篇关于“身体&gt; *&quot;在CSS中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆