好的。我正在建立一个网站,而且已经搞砸了。在制作导航栏的过程中,我要制作的动画无法正常工作。
# Loading toy dataset
mtcars
# Loading packages
library(dplyr)
library(MASS)
# The list of variable selection methods
my_model_types = list("both","backward","forward")
# Model building function
my_modelling_function = function(direction) {
glm(am ~ mpg + disp + hp + drat + wt + qsec, data = mtcars,
family = binomial) %>%
stepAIC(trace = FALSE, direction = direction)
}
# Building models using different variable selection methods
lapply(my_model_types, my_modelling_function)
* {
margin: 0;
padding: 0;
font-family: Roboto;
}
header {
box-sizing: border-box;
max-height: 50px;
}
nav {
position: sticky;
top: 0;
padding: 7.5px;
}
.link {
padding: 7.5px;
display: inline-block;
font-size: 15px;
color: black;
text-decoration: none;
border-radius: 10px;
background-color: white;
transition-duration: 0.75s;
}
.linkanim {
padding: 7.5px;
display: inline-block;
font-size: 15px;
color: black;
text-decoration: none;
border-radius: 10px;
}
.linkanim:hover {
background-color: grey;
}
.icocredit {
position: absolute;
top: 97.5%;
font-size: small;
}
仅当鼠标悬停在按钮上时,该按钮才显示动画。 但是,按钮在页面加载时会产生一些奇怪的变化。
答案 0 :(得分:0)
我发现这是字体问题,还是在本地Web服务器上以chrome本地加载HTML文件的问题,这不是问题。我将其标记为答案,从而结束该问题。