开发者

HTML - make input field selectable but not changeable

Like the youtube embed text fields. How do you ma开发者_Go百科ke a text field selectable but not changeable?


<input type="text" value="Some Text" readonly="readonly" />


Another way to achieve this is just to make a div appear like a text field.

<div style="border: inset 2px #ccc;background:#fff;padding:2px;">
  http://example.com/?id=sdfsdfsdfsdfsdf
</div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜