0
我在基金会5框架中的下拉式表单中遇到了一些问题。响应式网站下拉表单问题
基本上我将一个输入字段和按钮分配给下拉菜单,它工作正常。
但是因为我不能首先看到后退按钮,就像我可以在第一个下拉菜单中看到的一样,所以我看不到任何原因。基本代码是复制时。
观看第二个下拉并回到菜单,查看下拉一个输入框和按钮都可见后...
源代码如下:
CSS:
.has-form-small {
top: 0rem;
left: 0rem;
min-width: 15rem; }
@media only screen and (max-width: 40em) {
.has-form {
min-width: 10rem;
top: 0 rem; }
.has-form .button {
height: 3rem; } }
</style>
HTML: Dropdown 1:
<section class='top-bar-section'>
<!-- Right Nav Section -->
<ul class='right'>
<li><a href='#'>Button</a></li>
<li class='has-dropdown'>
<a href='#'>Dropdown</a>
<ul class='dropdown'>
<li><a href='#'>link</a></li>
<li><a href='#'>link</a></li>
</ul>
</li>
</ul>
</section>
Dropdown 2:
<section class='top-bar-section'>
<!-- Right Nav Section-->
<strong class='show-for-small-only'>
<ul class='right'>
<li class='has-dropdown'>
<a href='#'>Dropdown2</a>
<ul class='dropdown'>
<li class='has-form-small'>
<div class='row collapse'>
<div class='large-9 small-9 columns'>
<input type='text' placeholder='Find Stuff'>
</div>
<div class='large-3 small-3 columns'>
<a href='#' class='alert button expand'>Search</a>
</div>
</div>
</li>
</ul>
</li>
</ul>
</strong>
</section>
我认为你需要另外去描述问题是什么。很难理解你。另外,你能分解你发布的代码,只显示你感觉的相关部分吗? – rlarcombe
刚编辑它。希望它更清晰。 –
谢谢,这是更清楚。我会让社区回应。 – rlarcombe