| 12345678910111213141516171819202122232425262728293031323334353637 |
- <div id="editor">
- <h2>Hello world!</h2>
- <p>This is an editor instance.</p>
- <p>This is an editor instance.</p>
- <p>This is an editor instance.</p>
- <p>This is an editor instance.</p>
- <p>This is an editor instance.</p>
- <p>This is an editor instance.</p>
- </div>
- <div id="fixed">The toolbar should stick to me instead of the viewport.</div>
- <style>
- body {
- height: 10000px;
- }
- .ck-editor {
- margin-top: 200px;
- margin-left: 100px;
- margin-bottom: 200px;
- width: 450px;
- }
- #fixed {
- width: 100%;
- height: 100px;
- position: fixed;
- top: 0;
- z-index: 9999;
- background: green;
- opacity: .8;
- color: #fff;
- box-sizing: border-box;
- padding: 40px;
- }
- </style>
|