Adding dollar prefix to bootstrap input box

后端 未结 4 1563
自闭症患者
自闭症患者 2020-12-13 04:01

Is there anyway bootstrap way/style to add non-editable prefix into the inputbox? such as the dollar sign. the prefix has to be included inside the input box.

curren

4条回答
  •  忘掉有多难
    2020-12-13 04:24

    You can to this by setting the input-group a position:relative and absolute positioning the input and the span with higher(than input's z-index) z-index number for span.

    Also you need to add to the input a padding-left value equal to span's width

提交回复
热议问题