How can this effect be achieved in the text box?


SF javascriptx input
:

PS: I just found a code on the Internet, but I tried to reply in the input box: Gao Yang can never exist as a whole. If you delete it, you still want to delete it word by word

.
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css">
        .input{
            width:200px;
            height:24px;
            line-height:24px;
            font-size:14px;
            padding:5px 8px;
            border:1px solid -sharpddd;
        }
        .input:empty::before {
            content: attr(placeholder);
        }
    </style>
</head>
<body>
<div class="input" contenteditable placeholder="">
    <span>:</span>
</div>
</body>
</html>
Jun.22,2022

can be combined, with a package on the outside, "reply: xx" on the left, and input:

on the right.
<div class="wrapper">
  <div class="left">:xx</div>
  <input type="text"/>
</div>

.wrapper {
    box-sizing: border-box;
    height: 40px;
    width: 400px;
    border: 1px solid -sharpd5d5d5;
    border-radius: 5px;
    display: flex;
    font-size: 12px;
  }
  .wrapper .left {
    margin-top: 9px;
    margin-left: 10px;
    border: 1px solid -sharpd2d2d2;
    border-radius: 3px;
    padding: 0 10px;
    height: 22px;
    line-height: 22px;
  }
  .wrapper input {
    padding: 0 10px;
    flex-grow: 1;
    border: none;
    outline: none;
  }

then hide the border of input, remove the style of focus, monitor the focus status of input, and add a style analog input box to wrapper when focus.
the basic style is given to you, and then the focus that listens to input is left. Add a highlighted border to wrapper and try to write it yourself.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e61377-45909.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e61377-45909.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?