如何使用bootstrap在文本框中下拉。 [英] How to use pull down in textbox using bootstrap.

查看:497
本文介绍了如何使用bootstrap在文本框中下拉。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是bootstrap的新手。我想在我的项目中使用下拉概念。我正在尝试超过一小时,但无法绑定。实际过程是我正在搜索全局值,然后下一次单击特定数据加载网格中的值。此外,全局父值应位于全局文本框中。然后下次我点击全球会员相关图标。这些值绑定为下拉格式。谁能帮帮我吗。如果可能的话发送代码。这对我来说非常紧迫。谢谢。



我尝试了什么:







我是bootstrap的新手。我想在我的项目中使用下拉概念。我正在尝试超过一小时,但无法绑定。实际过程是我正在搜索全局值,然后下一次单击特定数据加载网格中的值。此外,全局父值应位于全局文本框中。然后下次我点击全球会员相关图标。这些值绑定为下拉格式。谁能帮帮我吗。如果可能的话发送代码。这对我来说非常紧迫。谢谢。

解决方案

 这个的答案真的在于  CSS的功能。 .pull-right和.pull-left都应用了一个micro-clearfix然后 float 元素左或右 in  Twitter Bootstrap。 

创建.pull-top和.pull-bottom ' 是不可行的,因为父元素需要有一个位置:相对应用,然后该元素需要用顶部和底部属性进行人工处理才能正确放置。替代方案将要求元件具有固定高度,其中负边距应用于顶部,高度的一半和顶部:应用50%。同样,这将需要父级位置:相对。

和任何CSS框架一样,你需要自己做一些事情



a拉下bootstarp的例子: -


('。pull-down')。each(function(){

var


此=

Hi,

I'm new in bootstrap. I want to use pull down concept in my project. I'm trying more than hour, but not able to bind. Actual process is i'm searching a global value then next click particular data load the values in grid. And also, the Global parent value should be in Global text box. then next time i'm clicking the global member dependent icon. that values are bind into pull down format. Can anyone please help me. If possible send the code. it's very urgent for me. Thanks.

What I have tried:

Hi,

I'm new in bootstrap. I want to use pull down concept in my project. I'm trying more than hour, but not able to bind. Actual process is i'm searching a global value then next click particular data load the values in grid. And also, the Global parent value should be in Global text box. then next time i'm clicking the global member dependent icon. that values are bind into pull down format. Can anyone please help me. If possible send the code. it's very urgent for me. Thanks.

解决方案

The answer to this really lies in the capabilities of CSS. .pull-right and .pull-left both apply a micro-clearfix and then float the element left or right in Twitter Bootstrap.

Creating .pull-top and .pull-bottom class' would not be feasible as the parent elements would need to have a position:relative applied, the element would then need man-handled around with top and bottom properties to have it placed properly. The alternatives would require the element to have a fixed height with negative margin applied to the top, of half the height and top:50% applied. Again this would need the parent to be position:relative.

As with any CSS framework, there are just some things you will have to do yourself 


a example of Pull down bootstarp:-


('.pull-down').each(function() {
var


this=


这篇关于如何使用bootstrap在文本框中下拉。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆