2011-11-02 96 views
3

我需要鎖定TinyMCE文本字段的工具欄,以便它始終出現在頁面的頂部,即使文本字段變大並且頁面滾動。TinyMCE酒吧總是在頂部

有沒有辦法把它放在一個單獨的元素,所以這可以做到?

我搜索了這個論壇和其他人沒有太多的運氣。

+0

任何運氣?我正在尋找同樣的事情 –

回答

0

你可以這樣做:

#content_toolbar1 { 
    position: fixed; 
    top: 0px; 
} 

取決於你特別div工具欄上的和id的ofcourse

0

解析TinyMCE的量是這樣的:

<div id="TinyMCEContainer"> 
<!-- TinyMCE Code --> 
</div> 
<div id="RestOfHtml"> 
</div> 

CSS:

#TinyMCEContainer 
{ 
    position: absolute; // or fixed; 
    top: 0; 
    left: 0; 
    overflow: hidden; 
    width: 100%; 
    height: 200px; // You height 
} 
#RestOfHtml 
{ 
margin-top: 200px; // You height 
}