誰かがCSSで私を助けてくれますか? 私はリストを持っており、リストをドロップダウンリストのように見せたいと思っています。これは白い背景で、スクロールバーのリストなどがあります.
ここに私のHTMLコード
<script>
$('document').ready(function(){
$('#textin1').click(function() {
var pos = $('#textin1').offset();
pos.top += $('#textin1').width();
$('#dropdown').fadeIn(100);
return false;
});
$('#dropdown li').click(function() {
$('#textin1').val($(this).text());
$(this).parent().fadeOut(100);
});
});
</script>
<input id="textin1" name="textin1" type="text" style="width:72px;">
<ul id="dropdown">
<?php
//display dropdown time for from
$start = strtotime('12:00am');
$end = strtotime('11:55pm');
for ($i = $start; $i <= $end; $i += 300){
$timerfrom = date('H:i', $i);
echo '<li>' . $timerfrom. '</li>' ;
}
?>
</ul>