html - 页面加载时元素移动并返回正确位置
问题描述
当页面加载时,我的页面中有一些元素正在移动..
像这个:
.letterBar {
font-family: 'Open Sans', sans-serif;
height: 45px;
background-color: #212121;
text-align:center;
font-size:0;
font-weight: lighter;
border-top: 1px solid #333;
border-bottom: 1px solid #333;
padding-left: 0.6px;
width: 1182px;
}
.letterBar a {
display:inline-block;
padding: 9.4px 16.8px;
margin: 2px 0px;
font-size: 15px;
text-decoration: none;
color: #d0d0d0;
background: #191919;
width:
}
我知道字母正在向下移动并回到正确的位置,因为加载时 letterBar 的宽度也在移动,但我该如何解决?
解决方案
推荐阅读
- javascript - 解释值应该如何存储在 javascript 中而不使用数据类型“var”或“let”以及执行堆栈如何在这里工作
- sql - 如果表 2 上的外键值为空,则表 UNION
- java - 从文件中获取某些单词并将其放入组合框 Java
- javascript - 带有面包屑的Angular 6过滤器显示错误
- javascript - 在 reduce 中使用 -Infinity 的原因
- angular - 在 Highstock 折线图 + Angular 5.0 中需要渐变颜色
- apache-spark - Spark 升级时的问题:找不到密钥:_PYSPARK_DRIVER_CONN_INFO_PATH
- python - 如果我有字典中的值列表,我可以对这些值列表执行条件压缩吗?
- javascript - Javascript forEach 仅循环数组的最后一个值
- javascript - Chrome 没有运行我的 jQuery