내가하려는 일에 대한 아이디어를 얻으려면 this question을 참조하십시오. 유일한 예외는 ApplicationLayout을 사용하고 있으며 PlaceBar 아래의 툴바를 원합니다. CSS를 트릭하여 툴바를 PlaceBar 아래에 표시하고, 스크롤 할 때 페이지 상단에 툴바를 표시하는 방법이 있습니까? 또는 ApplicationLayout의 상단 부분 (즉, PlaceBar, TitleBar, 등 ...)을 고정하지 않으면 스크롤하지 않습니다.ApplicationLayout에 플로트 도구 모음이 있습니까?
2
A
답변
4
업데이트 : XSnippet을 만들기 위해이 아이디어가 확장되었습니다. Download it from here.
작업 표시 줄, 제목 표시 줄과 같은 응용 프로그램 레이아웃의 상단 부분을 수정하려면 응용 프로그램 레이아웃 컨트롤 (HTML은 grepe grey 기능이 Inspect Element입니다)에 의해 생성 된 HTML 페이지의 CSS를 조사해야합니다. lotusTitleBar
, lotusPlaceBar
, lotusContent
등의 클래스를 사용하며 사용자 정의 CSS에서이 도구를 사용하여 부동 도구 모음을 만들 수 있습니다.
그래서 lib의 응용 프로그램 레이아웃 컨트롤이있는 XPage라고 가정 해 봅니다.
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:this.resources>
<xp:styleSheet href="/cssAppLayoutFloatingMenu.css"></xp:styleSheet>
</xp:this.resources>
<xe:applicationLayout id="applicationLayout1">
<xp:panel>
Sample Text. 1
<xp:br></xp:br>
Sample Text. 2
<xp:br></xp:br>
Sample Text. 3
<xp:br></xp:br>
Sample Text. 4
</xp:panel>
<xe:this.configuration>
<xe:oneuiApplication titleBarName="Sample Title" placeBarName="Sample Place">
<xe:this.footerLinks>
<xe:basicContainerNode label="Container 1">
<xe:this.children>
<xe:basicLeafNode label="Link 1" href="/"></xe:basicLeafNode>
<xe:basicLeafNode label="Link 2" href="/"></xe:basicLeafNode>
</xe:this.children>
</xe:basicContainerNode>
<xe:basicContainerNode label="Container 2">
<xe:this.children>
<xe:basicLeafNode label="Link 1" href="/"></xe:basicLeafNode>
<xe:basicLeafNode label="Link 2" href="/"></xe:basicLeafNode>
</xe:this.children>
</xe:basicContainerNode>
</xe:this.footerLinks>
<xe:this.placeBarActions>
<xe:pageTreeNode label="Page 1"></xe:pageTreeNode>
<xe:pageTreeNode label="Page 2"></xe:pageTreeNode>
</xe:this.placeBarActions>
</xe:oneuiApplication>
</xe:this.configuration>
</xe:applicationLayout>
</xp:view>
당신은 제목 표시 줄과 장소 바 플로트에게
.lotusTitleBar {
/*Class for Title bar*/
position: fixed;
width: 100%;
height: 45px;
z-index: 100;
}
.lotusPlaceBar {
/*Class for Place bar*/
position: fixed;
width: 100%;
z-index: 100;
top: 45px; /*Start after height of lotusTitleBar*/
height: 35px;
}
.lotusContent {
/*Class for Content*/
position: relative;
top: 80px; /*Height of lotusTitleBar + Height of lotusPlaceBar*/
}
주를 만들기 위해이 CSS를 사용할 수 있습니다에만 제목 표시 줄과 장소 바가 매우 기본적인 예이다. 응용 프로그램 레이아웃에 배너 또는 기타 요소를 포함 시키면 적절하게 수정해야합니다.
관련 문제
- 1. 도구 모음이
- 2. 내 IE 도구 모음이
- 3. 보고서 하단에 ReportViewer 중복 도구 모음이 있습니까?
- 4. MDIChild 도구 모음이 MDIParent에 표시됩니다.
- 5. Debugkit에 도구 모음이 표시되지 않습니다.
- 6. 센차 터치 : 도구 모음이 더
- 7. 슬라이더를 추가하면 도구 모음이 제거됩니다.
- 8. UICollectionView 틀 도구 모음이 잘못되었습니다.
- 9. CollapsingToolBarLayout에 이중 도구 모음이 있습니다.
- 10. 도구 모음이 MailController에 나타나지 않습니다.
- 11. QLPreviewController 도구 모음이 나타나지 않습니다.
- 12. Qt 도구 모음이 다시 이동하지 않습니다
- 13. ToolStripContainer의 도구 모음이 위치를 유지하지 않음
- 14. 도구 모음이 표시되지 않는 이유는 무엇입니까?
- 15. Symfony 디버그 도구 모음이 표시되지만 작동하지 않습니다.
- 16. 개발자 도구 모음이 비어있는 이유는 무엇입니까?
- 17. UIAlertView 단추가 새보기를 열었지만 탐색 도구 모음과 도구 모음이 없습니다.
- 18. 크기 변경시 WPF 도구 모음이 사라짐
- 19. popToRootViewControllerAnimated 도구 모음이 올바르게 업데이트되지 않았습니다.
- 20. 도구 모음이 키보드 위에 표시되지 않습니다.
- 21. 녹아웃 바인딩 및 CK 편집기 도구 모음이
- 22. jqgrid 검색 도구 모음이 jquery.jqgrid.js를 사용하지 않음
- 23. 쿼리 디자이너 도구 모음이 회색으로 표시됩니까?
- 24. 탭을 구현하면 안드로이드 도구 모음이 숨겨집니다.
- 25. JQuery Mobile, 고정 도구 모음이 작동하지 않습니다.
- 26. 9930 시뮬레이터에서 도구 모음이 표시되지 않습니다.
- 27. 조각 내부의 도구 모음이 겹침 조각
- 28. iPhone UIWebView touch 원인 도구 모음이 나타납니다.
- 29. SonataFormatter ivory_ck_editor 도구 모음이 표시되지 않습니다.
- 30. 도구 모음이 난 경계 레이아웃 뷰포트를
감사! 나는 더 많은 CSS 작업을해야하지만, 이것이 내가 필요한 것입니다. –