Place a non editable percentage sign within a HTML input field

前端 未结 4 1699
慢半拍i
慢半拍i 2021-01-02 18:01

I currently have a series of input field boxes which are numerical based. The trouble I am having is adding a \'%\' symbol at the end of each box. Ultimately i want the % sy

4条回答
  •  既然无缘
    2021-01-02 18:49

    Here you go

    .valuePadding {
      border: 1px inset #ccc;
    }
    .valuePadding input {
      border: none;
      padding:0px;
      outline: none;
    }
    %
    

提交回复
热议问题