나는 다음과 같은 마크 업이 있습니다 의 RadioButton 텍스트 스타일
곳
.checkBoxImg input { vertical-align:top; margin-top:5px;}
및
this.rbtnAssessedNo.Text = "<img src='images/icons/icon_no.gif' /><span style=\"margin-top:5px; vertical-align:top\">No</span>";
I는 RadioButtons를 텍스트 얻을 : IMG (27x27px) 및 텍스트 : NO를 (16x16px) margin-top : 5px가 작동하지 않으며 img와 관련이 있습니다. 또한 내가 중간에 수직 정렬을 변경하면 전체 RadioButton 스팬의 맨 아래로 잘못 간다.
저는 img와 text를 얻으려고합니다. img의 중간에있을 것입니다. (더 많거나 적은 5px가 정상이 될 것입니다). 내가 도대체 뭘 잘못하고있는 겁니까?
에서, 이미지의
height
에line-height
동일? – abatishchev