我正在制作一个FQA页面,我想当我点击问题时,弹出问题下面的答案。一切都很好,当我点击问题时,答案就会显示出来,但问题是页面会向下滚动一点,问题会消失在顶部,而且它对用户不友好。 现在我将展示:Before the click 正如你所看到的,答案正在显示,但是滚动条会自动向下移动,这会隐藏问题,你必须向上滚动一点才能看到答案。,After the question click。 As you can see when I scroll up everything is fine and working, but I want to fix this 这是我的html和css代码: <
注意:这在firefox,chrome上运行得很好,唯一的问题是使用移动浏览器(iphone/android)
我使用jQuery/jQuery mobile创建了一个模拟地址簿(电话簿)的网页,我将所有联系人都放在一个列表中,并有一个搜索筛选栏来搜索联系人。
<ul id="Addressbook" data-role="listview" data-filter="true" data-filter-placeholder="Type name here for filter search" data-filter-th
HTML/CSS新手在这里。我正在制作一个网页,在页面的中央上方有一个文本标题,右上角有一个登录按钮。我使用React (使用嵌入式HTML)在Bootstrap中编写代码。下面是代码。
标题:
<div className="page-header">
<h1 id="header">Header text</h1>
</div>
登录按钮:
<div id="login">
/*Displays login button if user is logged in,