需要帮助将CSS和HTML结合在一起吗
我需要代码,我需要帮助将它们组合在一起 HTML代码:需要帮助将CSS和HTML结合在一起吗,css,eclipse,html,Css,Eclipse,Html,我需要代码,我需要帮助将它们组合在一起 HTML代码: <div class="loader"> <span></span> <span></span> <span></span> </div> 我需要帮助合并,这样我就可以有一个动画。你必须使用eclipse吗?你可以用 在index.html文件中,然后为css创建style.css文件 有3种方法可以设置html的样式
<div class="loader">
<span></span>
<span></span>
<span></span>
</div>
我需要帮助合并,这样我就可以有一个动画。你必须使用eclipse吗?你可以用
在index.html文件中,然后为css创建style.css文件
有3种方法可以设置html的样式:
blah
标记之间的
内部样式等等,但它会为我想要的项目设置动画吗use@user3053057在我上面概述的3个选项中,您的文件现在是如何组织的?
.loader {
text-align: center;
}
.loader span {
display: inline-block;
vertical-align: middle;
width: 10px;
height: 10px;
margin: 50px auto;
background: black;
border-radius: 50px;
-webkit-animation: loader 0.9s infinite alternate;
-moz-animation: loader 0.9s infinite alternate;
}
.loader span:nth-of-type(2) {
-webkit-animation-delay: 0.3s;
-moz-animation-delay: 0.3s;
}
.loader span:nth-of-type(3) {
-webkit-animation-delay: 0.6s;
-moz-animation-delay: 0.6s;
}
@-webkit-keyframes loader {
0% {
width: 10px;
height: 10px;
opacity: 0.9;
-webkit-transform: translateY(0);
}
100% {
width: 24px;
height: 24px;
opacity: 0.1;
-webkit-transform: translateY(-21px);
}
}
@-moz-keyframes loader {
0% {
width: 10px;
height: 10px;
opacity: 0.9;
-moz-transform: translateY(0);
}
100% {
width: 24px;
height: 24px;
opacity: 0.1;
-moz-transform: translateY(-21px);
}
}