편집 요약 없음 |
편집 요약 없음 |
||
18번째 줄: | 18번째 줄: | ||
!문법||결과 | !문법||결과 | ||
|- | |- | ||
|{{#css: .mw-highlight > pre { white-space: pre-wrap; } }}<syntaxhighlight lang="html+handlebars">{{버튼 | |{{#css: .mw-highlight > pre { white-space: pre-wrap; } }}<syntaxhighlight lang="html+handlebars"><div style="display: inline-block; width: 120px; padding: 2px; border: 2px solid gray;">{{버튼 | ||
|id=btn-template-test | |id=btn-template-test | ||
|common=display: inline-block | |common=display: inline-block; width: 100%; padding: 15px; text-transform: uppercase; user-select: none; transition: all .1s; | ||
|style1=background: red; color: white; | |style1=background: red; color: white; | ||
|style2=background: lime; color: black; | |style2=background: lime; color: black; | ||
|csscontent1=BUTTON | |csscontent1=BUTTON | ||
|csscontent2=CLICKED! | |csscontent2=CLICKED! | ||
}}</syntaxhighlight> | }}</div></syntaxhighlight> | ||
|{{버튼 | |<div style="display: inline-block; width: 120px; padding: 2px; border: 2px solid gray;">{{버튼 | ||
|id=btn-template-test | |id=btn-template-test | ||
|common=display: inline-block | |common=display: inline-block; width: 100%; padding: 15px; text-transform: uppercase; user-select: none; transition: all .1s; | ||
|style1=background: red; color: white; | |style1=background: red; color: white; | ||
|style2=background: lime; color: black; | |style2=background: lime; color: black; | ||
|csscontent1=BUTTON | |csscontent1=BUTTON | ||
|csscontent2=CLICKED! | |csscontent2=CLICKED! | ||
}} | }}</div> | ||
|} | |} | ||
{{김찬 제작 틀}} | {{김찬 제작 틀}} |
2025년 1월 29일 (수) 21:58 판
틀:버튼 | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
이 틀은 {{btn}}(으)로도 사용할 수 있습니다.
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다.
문법 | 결과 |
---|---|