我有这个网站:CLICK。还有 .nav-toggle{
position: absolute;
right: -50px;
top: 0;
width: 50px;
height: 50px;
background: #404040;
line-height: 45px;
text-decoration: none;
text-align: center;
/* border-bottom-right-radius: 3px; */
box-shadow: 1px 0 3px #404040;
outline: 0;
}
.nav-toggle:before {
content: "\2192";
font-weight: 600;
color: white;
display: inline-block;
}
.nav-side.nav-open .nav-toggle:before{
content: "\2190";
}
。在电脑上看它通常在中心,但当我在手机上访问该页面时,我会跳起来。
的CSS:
def employee():
# salary's data type is decimal(8,2) in the database
cursor.execute("SELECT ID, dateofbirth, type, salary FROM employee")
result= cursor.fetchall()
return render_template('Employee.html', result=result)
答案 0 :(得分:0)
无法在Chrome的开发工具中使用设备工具栏功能复制问题但是,我假设您的意思是当您滚动网页时搜索栏(位于移动设备屏幕标题顶部)关闭移动设备,这会影响你的导航栏。
如果你添加
overflow: hidden;
到css类.nav-open
,而不是.nav-toggle
这会在您滚动页面时修复随机行为。