Javascript 如果存在';它旁边有什么地方?

Javascript 如果存在';它旁边有什么地方?,javascript,jquery,html,css,twitter-bootstrap,Javascript,Jquery,Html,Css,Twitter Bootstrap,在我的网站上,有一个包含内容和文本编辑器的主栏,还有一个包含更多文本的侧边栏。有时边栏文本无法到达文本编辑器所在的位置。在这种情况下,我希望增加文本编辑器所在div的宽度。如何在不改变整个页面结构的情况下做到这一点 从我的网站,文本编辑器可以更广泛。下面嵌入了相关代码 边栏文本。此文本长度不同,可能无法到达编辑器区域。 知识是一种美德,是一种美德,是一种美德,是一种美德 这就是主要内容的发展方向。知识是一种美德,是一种美德,是一种美德,是一种美德。但是,在最低限度上,我们需要一个实验室来进行

在我的网站上,有一个包含内容和文本编辑器的主栏,还有一个包含更多文本的侧边栏。有时边栏文本无法到达文本编辑器所在的位置。在这种情况下,我希望增加文本编辑器所在div的宽度。如何在不改变整个页面结构的情况下做到这一点

从我的网站,文本编辑器可以更广泛。下面嵌入了相关代码


边栏文本。此文本长度不同,可能无法到达编辑器区域。
知识是一种美德,是一种美德,是一种美德,是一种美德

这就是主要内容的发展方向。知识是一种美德,是一种美德,是一种美德,是一种美德。但是,在最低限度上,我们需要一个实验室来进行日常工作。两人或两人在一个无教区的房间里互相指责。除偶尔因疏忽而死亡外,不得因疏忽而导致动物死亡。但我必须向你们解释所有这些谴责快乐和赞美痛苦的错误想法是如何产生的,我将给你们一个完整的系统描述,并阐述伟大的真理探索者、人类幸福的建设者的实际教导。没有人拒绝、不喜欢或回避快乐本身,因为快乐本身就是快乐,但因为那些不知道如何理性地追求快乐的人会遇到极其痛苦的后果。再也没有人爱自己、追求自己或渴望自己获得痛苦,因为这是痛苦,而是因为偶尔会发生一些情况,在这些情况下,辛劳和痛苦可以使他获得一些巨大的快乐。举一个简单的例子,除了从中获得一些好处外,我们当中谁曾进行过艰苦的体育锻炼?但是,谁有权利对一个选择享受没有烦人后果的快乐的人,或者一个选择避免没有结果快乐的痛苦的人挑剔呢? 主编 这是主要的编辑区域。如果旁边的侧边栏中没有文本,则最好扩大此区域。 知识是一种美德,是一种美德,是一种美德,是一种美德。但是,在最低限度上,我们需要一个实验室来进行日常工作。两人或两人在一个无教区的房间里互相指责。除偶尔因疏忽而死亡外,不得因疏忽而导致动物死亡

结果 这就是结果所在。编辑器可以将其包含在加宽区域中。 知识是一种美德,是一种美德,是一种美德,是一种美德。但是,在最低限度上,我们需要一个实验室来进行日常工作。两人或两人在一个无教区的房间里互相指责

请检查这把小提琴:。虽然您已经提到,您不想更改整个结构,但您可以通过对结构进行一点调整来轻松实现所需,同时保持响应性。新的HTML应该是这样的:

<html>
<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
    <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"/>

</head>
<body>
<div class="row-fluid">
    <div class="span2">
    <p>sidebar text. this text varies in length and may not reach editor area. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
    </div>
    <div class="span9">
<div>
This is where main content goes.  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?
</div>
    </div>
        <div class="row-fluid">
            <div class="span8">
                <div>
                    <h3>Main Editor</h3>
                    <p>This is the main editing area. It would be good to widen this area iff there's no text in the sidebar next to it. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                </div>
            </div>  

            <div class="span4">
                <h3>Results</h3>
                <p>This is where results go. This can be included with the editor in the widening. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
            </div>
        </div>
</div>
</body>
</html>

边栏文本。此文本长度不同,可能无法到达编辑器区域。
知识是一种美德,是一种美德,是一种美德,是一种美德

这就是主要内容的发展方向。知识是一种美德,是一种美德,是一种美德,是一种美德。但是,在最低限度上,我们需要一个实验室来进行日常工作。两人或两人在一个无教区的房间里互相指责。除偶尔因疏忽而死亡外,不得因疏忽而导致动物死亡。但我必须向你们解释所有这些谴责快乐和赞美痛苦的错误想法是如何产生的,我将给你们一个完整的系统描述,并阐述伟大的真理探索者、人类幸福的建设者的实际教导。没有人拒绝、不喜欢或回避快乐本身,因为快乐本身就是快乐,但因为那些不知道如何理性地追求快乐的人会遇到极其痛苦的后果。再也没有人爱自己、追求自己或渴望自己获得痛苦,因为这是痛苦,而是因为偶尔会发生一些情况,在这些情况下,辛劳和痛苦可以使他获得一些巨大的快乐。举一个简单的例子,除了从中获得一些好处外,我们当中谁曾进行过艰苦的体育锻炼?但是,谁有权利对一个选择享受没有烦人后果的快乐的人,或者一个选择避免没有结果快乐的痛苦的人挑剔呢? 主编 这是主要的编辑区域。如果旁边的侧边栏中没有文本,则最好扩大此区域。 知识是一种美德,是一种美德,是一种美德,是一种美德。但是,在最低限度上,我们需要一个实验室来进行日常工作。两人或两人在一个无教区的房间里互相指责。除偶尔因疏忽而死亡外,不得因疏忽而导致动物死亡

结果 这就是结果所在