웹 페이지에 2 개의 버튼을 놓으려고합니다. 하나는 왼쪽으로, 다른 하나는 오른쪽으로 띄웁니다. 두 명령 단추에는 여러 줄의 스타일이 지정된 텍스트가 있습니다. 아래는 나의 최근 시도입니다. 그것은 파이어 폭스에서 작동하는 것,하지만 IE 8에 가까운조차되지 않습니다. 어떤 아이디어를 어떻게 두 환경에서 작동하도록 할 수 있습니까? 감사.버튼 요소 내의 여러 줄의 스타일이 지정된 텍스트
CSS :
body {
background-color: green;
}
.idxQuestion {
font-size: 36;
text-align: center;
}
.idxButtons {
margin-top:60px;
margin-left: auto;
margin-right:auto;
width:350px;
}
.buttonchoice1,.buttonchoice2
{
text-align: center;
background:white;
padding: 5px;
}
.buttonchoice1 {
float:left;
border:5px solid red;
}
.buttonchoice2 {
float:right;
border:5px solid blue;
}
.spanchoice1 {
font-size: 30px;
}
.spanchoice2 {
font-size: 10px;
}
HTML :
<div class="idxQuestion">
<h1>Big Question?</h1>
</div>
<div class="idxButtons">
<h:button class="buttonchoice1" onclick="option1?faces-redirect=true" >
<h:outputText escape=false>
<span class="spanchoice1">No</span><br />
<span class="spanchoice2">additional info 1</span>
</h:outputText>
</h:button>
<h:button class="buttonchoice2" onclick="option2?faces-redirect=true" >
<h:outputText>
<span class="spanchoice1">Yes</span><br />
<span class="spanchoice2">additional info 2</span>
</h:outputText>
</h:button>
</div>
바이올린 : http://jsfiddle.net/MF23L/
"h"태그의 출처는 어디입니까? – chipcullen
나는 그가 HTML 페이지에 직접 ASP.NET 코드를 붙여 넣고있는 것 같아. ** IE **가 무엇인지 알기 때문에 잘못 렌더링되고있다. 마크 업에서'h :'를 모두 제거한다. –
언젠가 나는 내가 CSS에서 'H'태그를 모르는 사람이 하나뿐입니다. hehe –