在下面的小提琴中,文本「標題」(紅色)顯示比問題文本的其餘部分略高。文本的高度如何降低?在特定高度的定位元素
我試過使用「top -30px」?
.pds-pd-link {
display: none !important;
}
.pds-box {
width: 220px !important;
}
.pds-input-label{
width: auto! important;
}
.PDS_Poll{
margin-bottom:15px;
}
<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>
$(document).ready(function() {
$('.pds-question-inner').prepend('<center><span style="color:red;font-weight:bold;font-size: 10pt;float:left"><u>Header</u></span></center>');
});
混合內聯和塊標記是一個壞主意。你爲什麼不在'div.pds-question-top'內部而不是在'div.pds-question-top'中添加'center'標籤? – 2012-07-09 14:51:26
'