search

Home  >  Q&A  >  body text

javascript - Input and cover the padding-left of input[placeholder] prompt content in iview form

Input and cover the padding-left of input[placeholder] prompt content in iview form

<Form-item prop="password">

        <Input type="password" v-model="formInline.password" placeholder="Password">
        </Input>
    </Form-item>
    

The solution is: placeholder="Password"
The default padding-left of password; I need padding-left=50px; I can’t set it no matter how I set it

漂亮男人漂亮男人2748 days ago971

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-06-10 09:51:22


    It can be set up successfully. Can you see if the priority of the padding-left style you set is higher than input[type="password" i]?

    reply
    0
  • PHP中文网

    PHP中文网2017-06-10 09:51:22

    Directly in the console, copy all the element names where the default style is located, so that modifications can ensure the highest priority

    reply
    0
  • Cancelreply