Jquery 如何使文本围绕元素折叠?

Jquery 如何使文本围绕元素折叠?,jquery,html,css,Jquery,Html,Css,我有一个文本字段,它将文本附加到元素,我希望它附加到li元素的文本以非常特定的方式排列。我想也许可以添加一个小图像,并使该图像与css不可见。还有更传统的方法吗 I want to be able to have text like this then(invisible element) makes the text continue here(invisible element) and here. 当您将文本弹出到该元素中时,也会向其添加css类 并定义css类,如 .icon{ ba

我有一个文本字段,它将文本附加到
  • 元素,我希望它附加到li元素的文本以非常特定的方式排列。我想也许可以添加一个小图像,并使该图像与css不可见。还有更传统的方法吗

    I want to be able to have text like this then(invisible element)
    makes the text continue here(invisible element)
    and here.
    

    当您将文本弹出到该元素中时,也会向其添加css类

    并定义css类,如

    .icon{
    
    background:url(my_desired_image.png) no-repeat size;
    // other styles 
    }
    
    然后,每当元素从字段中获取文本时,它将添加类,并且类将同时显示她的图像

    我希望能有这样的文本
    使文本在此继续
    在这里。
    

    是你的隐形元素吗?你的意思是像一个

    你肯定想要一个
    标签+1 petahad作为答案@Petah,你说得对。
    I want to be able to have text like this then <i class="icon"></i>
    makes the text continue here< i class="icon"></i>
    and here.
    
    <i class="icon"></i>