我有一个循环以表格形式显示月份。
我想以两种不同的格式显示月份:
像这样:
<option value="01">January</option>
<!-- ... -->
<option value="12">December</option>
Run Code Online (Sandbox Code Playgroud)
问题是,我无法显示此内容。
到目前为止,这是我的代码:
echo '<select name="month">';
for ($x=1; $x<=12; $x++)
{
$val=strlen($x);
if($val==1)
{
echo '<option value="'.'0'.$x.'">'.'0'.$x.'</option>';
} else {
echo '<option value="'.$x.'">'.$x.'</option>';
}
}
echo '</select>';
Run Code Online (Sandbox Code Playgroud) 你好,我这里有3个不同的div.如何从左到右更改hide/show div的动画?当#framecontentLeft显示/隐藏时,自动更改framecontentTop和maincontent的宽度?
看到这个链接.那是我想做的动画.http://www.htmldrive.net/items/demo/1421/a-jQuery-plugin-for-toggle-showhide-sidebar
有什么帮助吗?
这是我的代码
<script type="text/javascript">
$(document).ready(function(){
$("#framecontentLeft").hide();
$(".show_hide").show();
$('.show_hide').click(function(){
$("#framecontentLeft").slideToggle();
});
});
</script>
<style>
body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
}
#framecontentLeft, #framecontentTop{
position: absolute;
top: 0;
left: 0;
width: 150px; /*Width of left frame div*/
height: 100%;
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color: silver;
color: white;
}
#framecontentTop{
left: 150px; /*Set left value to WidthOfLeftFrameDiv*/
right: 0;
width: auto;
height: 120px; /*Height of top frame …Run Code Online (Sandbox Code Playgroud)