内容 |
左右布局的形式想必大家都熟悉吧,在本文有个不错的示例,希望可以帮助大家更好的了解左右布局的概念 css: 代码如下: html,body{ margin:0px; padding:0px; height: 100%; } .headbg{ background: black; color: white; height:48px; } .userManagerAll{ height: 100%; width: 100%; } .leftside{ background: #E6E6E6; float: left; height: 100%; width: 200px; margin: 0px; overflow-y:auto; } .rightside{ background: white; height: 100%; width:100%; align:right; } html: 代码如下: <div></div> <div> <div>1</div> <div>2</div> </div> 点击文本框,文字消失 代码如下: <input name="textfield" type="text" value="点击文字消失" size="12" onclick="value='';focus()" onblur="if(value=='') value='点击文字消失;"/>
|