홈 페이지의 메뉴에 제목을 추가하는 CMS를 사용하고 있습니다. 이것은 Li의 형태입니다.CSS를 사용하여 공백으로 회신
내 페이지 제목에 'Hello World'라는 단어가 두 개있는 경우 두 단어 사이에 줄 바꿈이 있어야 단어가 두 줄로 표시됩니다. 내가 어떻게 할 수 있니?
공백 문자 조합을 시도했지만 공백은 아닙니다. 감사합니다. 감사합니다.
업데이트 : SharePoint 사용시 제목에 태그를 추가 할 수 없습니다.
.s4-tn li.static > .menu-item {
color:white;
border:0px none transparent;
background-color:transparent;
height:38px;
padding:7px 10px 5px;
font-size:1.2em;
border-left: 1px solid transparent;
border-right: 1px solid white;
font-family:Arial, Helvetica, sans-serif;
font-weight:100;
}
.menu-item-text {
width:6em;
background:lime;
height:30px;
white-space:pre-line;
}
브라우저 렌더링 된 HTML 코드 :
<div class="menu horizontal menu-horizontal">
<ul class="root static">
<li class="static"><a class="static menu-item" href="/expense" accesskey="1"><span class="additional-background"><span class="menu-item-text">Expense Form</span></span></a></li><li class="static">
''
잘못 무엇입니까? –
어떤 CMS를 사용하고 있습니까? –
코드는 어디에 있습니까? 어디서, 코드는 어디에 있습니까? – Kyle