是否可以在此提琴中将跨度“ Header”对齐:http://jsfiddle.net/25LjE/37/到文本的右侧,如图所示:



我正在使用jquery创建标头。

这是小提琴代码:

<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/6352993.js"></script>
<noscript><a href="http://polldaddy.com/poll/6352993/">This is very long test question to test how polldaddy handles questions that exceed that normal length............ yes a very long question indeed..............</a></noscript>

.pds-pd-link {
display: none !important;
}
.pds-box {
    width: 220px !important;
}
.pds-input-label{
    width: auto! important;
}
.PDS_Poll{
    margin-bottom:15px;
}
$(document).ready(function() {

    $('.pds-question-inner').prepend('<center><span style="color:red;font-weight:bold;font-size: 10pt"><u>Header</u></span></center>');
});


当我尝试在IE8中提出建议的解决方案时,文本略高于其余文本:



这可以解决吗?

最佳答案

您只需要在float:left中添加

<span style="color:red;font-weight:bold;font-size: 10pt;float:left"><u>Header</u></span>

检查一下:

JSFiddle

08-08 05:33