Home >Web Front-end >HTML Tutorial >Can the text be displayed as label style_html/css_WEB-ITnose

Can the text be displayed as label style_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:351470browse

I have a form with a lot of content in it. I don’t want users to be able to input it and it will be displayed in the label style. I can modify and get its value in javascript. I don’t want it to be displayed like (type=text) with a cursor. and the input box.


Reply to discussion (solution)

Isn’t readonly possible?

Isn’t readonly possible?
I don’t want people to see that it is input type=text, and I don’t want users to be able to modify these values.

bc01547e67ba0765021f6c2fa51138f7

bc01547e67ba0765021f6c2fa51138f7
Thank you, this can remove the border, but the cursor is still there. Is there a way to remove the cursor?

You can use span etc.

<input type="text" disabled="disabled" style="border:0; background-color:#FFF;" value="test" />

Since you don’t want the user to input content, there is no need to use text, just use other ones, label, div , span. . . . . .

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn