标签: textinput

如何根据焦点设置Kivy TextInput背景颜色

background_activeKivy 具有和属性,分别用于在焦点和未焦点时background_normal设置小部件的背景。TextInput但是,这设置了背景图像,而不是rgba颜色。有一个background_color属性,但这会设置 的TextInput背景颜色,无论它是否处于焦点状态。

如何TextInput根据 是否聚焦来更改 的背景颜色?

python user-interface textinput python-2.7 kivy

2
推荐指数
1
解决办法
4465
查看次数

文本输入占位符在本机反应中下降

在我的 React Native 应用程序中,当我按下文本输入时,占位符会向下移动一点,如下图所示。我们该如何解决这个问题?只需触摸并滚动屏幕即可实现此更改。带或不带滚动视图都不起作用

在此输入图像描述

> below is my code
           <ScrollView>
          <View style={styles.Seventh}>
            <View style={styles.Eighth}>
              <Image style={styles.Imagethird} source={require('../src/Assets/Profile-xhdpi.png')} />
            </View>
            <View style={styles.ninth}>
              <Text style={styles.Textthird}>USER'S NAME</Text>
              <TextInput placeholder="user's name               " style={styles.one} underlineColorAndroid='transparent'
            //--------------value Handler----------------//
            onChangeText={(firstName) => this.setState({firstName})}

            //---------------------------------//
              />
            </View>
            </View>
            </ScrollView>
            Seventh: {
                height: 60,
                width: '100%',
                borderRadius: 70,
                flexDirection: 'row',
                elevation: 3,
                backgroundColor: 'white',
                marginTop:10
            },
            Eighth: {
                height: 60,
                width: '20%',
                justifyContent: 'center',
                alignItems: 'center'
            },
            Imagethird: {
                height: 20,
                width: 20,
                resizeMode: 'contain',
            },
            ninth: {
                height: 60, …
Run Code Online (Sandbox Code Playgroud)

scroll placeholder textinput react-native

2
推荐指数
1
解决办法
2052
查看次数

当 TextInput onFocus 和 onBlur.React-Native 时更改样式

我在 5 页中有 40 个 TextInput,需要更改输入文本颜色 onfocus:'white' 和 onBlur:'gray' 我知道如何使其成为单个输入。但我需要多个输入

<TextInput 
  clearTextOnFocus={true}
  keyboardType="number-pad"
  style={[this.state.isFocused?styles.inputOnFocus:styles.input]}
  onChangeText={v=>handleInput('value',v)}
  value={this.state.value}
  onFocus={()=>this.setState({isFocused:true})}
  onBlur={()=>this.setState({isFocused:false})}

/>
Run Code Online (Sandbox Code Playgroud)

textinput react-native

2
推荐指数
1
解决办法
5493
查看次数

软键盘覆盖了 SlidingUpPanel 颤动上的 TextInput

这是正在使用的,当我在其中使用 TextInput 时,panelBuilder 它同时具有 ListView 和 InputTextField,但是当我开始键入时,软键盘会覆盖 InputText 字段。

我还尝试添加这一行:

resizeToAvoidBottomInset: false,在 Manfiest 文件中加上Scaffold这个

<item name="android:windowFullscreen">true</item>

但没有运气。

以下是屏幕截图:

图一

[图二

textinput dart flutter

2
推荐指数
1
解决办法
1503
查看次数

仅从已更改的文本输入中收集值

我有一个html页面,在ajax调用后显示了很多数据行,在每一行中我都输入了不同值的文本,用户可以编辑这个文本输入然后按一个按钮来做一些计算操作.

如何使用javascript(jQuery)仅收集已更改的值,并将它们发送到php脚本.我搜索一个简单的方法,不是保存所有大数值的旧值,然后与新值进行比较,是否有这样的解决方案?

forms jquery textinput

1
推荐指数
1
解决办法
3789
查看次数

我们怎样才能得到Spark TextInput像素的实际文字宽度?

因为textWidth属性在spark textinput中无法访问,我们如何才能获得该属性?

apache-flex flash textinput

1
推荐指数
1
解决办法
3454
查看次数

使用jQuery编辑多个输入

我有一个动态的多文本输入:

<input type="text" id="text_1">
<input type="text" id="text_2">
<input type="text" id="text_3">
<input type="text" id="text_4">
<input type="text" id="text_5"> ....
Run Code Online (Sandbox Code Playgroud)

如何使用jQuery编辑每个textinput上的id:

$('#form').submit(function(){
  $.post('include/setting.php', {
    text_(id): $('#text_(id)').val(), // <--
  }, 'json')
  return false;
})
Run Code Online (Sandbox Code Playgroud)

用PHP如何获取输入ID?

php jquery dynamic textinput

1
推荐指数
1
解决办法
569
查看次数

对齐文本输入下方的标签

我试图将表单中的标签对齐到文本输入框下方.我从这里改编了我的CSS .

它在IE 9中完美显示,但我遇到了firefox,chrome等问题.

这是IE中的样子:

IE

这就是它在firefox中的样子:

在此输入图像描述

它在chrome中看起来最糟糕,但我想首先在firefox中使用它.

主要关注点是:

  • 文本输入应位于标签上方的中心.
  • 冒号应与文本输入垂直对齐.
  • 下拉列应与文本输入垂直对齐.

这是我的标记:

<form action="" method="post">

    <label for="time">Time settings</label>

    <div class="description">
        Description goes here
    </div>

    <span><label for="time">Hour</label> <input type="text" id="time" name="time" maxlength="2" size="2"></span>
    <span>:</span>
    <span><label for="time-minute">Minute</label> <input type="text" id="time-minute" name="time-minute" maxlength="2" size="2"></span>
    <span>:</span>
    <span><label for="time-seconds">Seconds</label> <input type="text" id="time-seconds" name="time-seconds" maxlength="2" size="2"></span>

    <span>
        <select id="time-ampm" name="time-ampm">
            <option value="am">AM</option>
            <option value="pm">PM</option>
        </select>
    </span>
    </form>
Run Code Online (Sandbox Code Playgroud)

这是CSS风格:

<style>
    span{
        display: inline-block;
    }

    span input { 
        display: block; 
        position: relative; 
        top: -3em; 
        text-align: center; …
Run Code Online (Sandbox Code Playgroud)

html css textinput

1
推荐指数
1
解决办法
1万
查看次数

如何从网站发布和检索数据

我正在使用Windows窗体应用程序.我有一个名为"tbPhoneNumber"的文本框,其中包含一个电话号码.

我想去的网站上http://canada411.com和那是在我的文本框的数量进入,进入的网站文本ID:"c411PeopleReverseWhat",然后莫名其妙的"查找"(这是一个属于输入发送点击上课"c411ButtonImg").

之后,我想检索以下HTML部分的星号之间的内容:

<div id="contact" class="vcard">
        <span><h1 class="fn c411ListedName">**Full Name**</h1></span>
        <span class="c411Phone">**(###)-###-####**</span>
        <span class="c411Address">**Address**</span>
        <span class="adr">
            <span class="locality">**City**</span>
            <span class="region">**Province**</span>
            <span class="postal-code">**L#L#L#**</span>
        </span>
Run Code Online (Sandbox Code Playgroud)

所以基本上我试图将数据发送到输入框,单击输入按钮并将检索到的值存储到变量中.我想要做到这一点,所以我需要做一些像HTTPWebRequest的事情?或者我使用WebBrowser对象?我只是不希望用户看到该应用程序在网站上.

vb.net textinput web

1
推荐指数
1
解决办法
5528
查看次数

Kivy:TextInput边框半径

我想知道是否有可能在python和Kivy中自定义TextInput小部件,例如HTML / CSS。有什么办法可以直接在我的CustomTextInput(TextInput)课堂上做到这一点吗?

我希望我的TextInput看起来像这样:

我想获得什么

textinput kivy

1
推荐指数
1
解决办法
1866
查看次数