Is there a way to make a text area partially editable? (make only portions of the text editable)

前端 未结 8 1626
太阳男子
太阳男子 2020-11-29 08:09

I just came across a situation in which it would be an elegant solution to have only portions of a text area (previously loaded with text) be editable while other portions a

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 08:49

    In a parent element, you can set the border to 1px solid gray and then inside this, put the

    1) textarea (modify the css to not have border) 2) label (no border as well)

    In this case, it will look like the both texts inside 1) and 2) are together since they are placed in one box. 1) Is editable though while the other is grayed out.

提交回复
热议问题