六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 33|回复: 0

控制页面显示内容

[复制链接]

升级  15.2%

176

主题

176

主题

176

主题

进士

Rank: 4

积分
576
 楼主| 发表于 2013-2-7 14:55:22 | 显示全部楼层 |阅读模式
<html><head><title>display</title><script type="text/javascript"><!--    function show(id){        var msg=document.getElementById("submenu"+id);        if(msg.style.display=="none")            // msg.style.display="block";msg.style.display="";        else            msg.style.display="none";    }//--></script></head><body><table width="100%" >    <tr width="100%">        <td width="100%">            <font style="cursor:hand;" >                菜单一            </font>        </td>    </tr>    <tr id="submenu1" style="display:none;">        <td>            <table>                <tr>                    <td>子菜单a</td>                </tr>                <tr>                    <td>子菜单b</td>                </tr>            </table>        </td>    </tr>    <tr width="100%">        <td width="100%">            <font style="cursor:hand;" >                菜单二            </font>        </td>    </tr>    <tr id="submenu2" style="display:none;">        <td>            <table>                <tr>                    <td>子菜单c</td>                </tr>                <tr>                    <td>子菜单d</td>                </tr>            </table>        </td>    </tr></table></body><html>

<style> a{background:blue;display:block;color:#fff} </style> <a href="http://g.cn">g.cn </a> <a href="http://g.cn">g.cn </a> <a href="http://g.cn">g.cn </a> <a href="http://g.cn">g.cn </a> <!--style "display:block" 意思就是块,加了这个样式,一个元素会自动为一行,如果是链接的话,点击这个行任何地方都会有链接,而不只是点击链接的字才有链接-->

<style> a{background:blue;color:#fff} </style> <a href="http://g.cn">g.cn </a> <a href="http://g.cn">g.cn </a> <a href="http://g.cn">g.cn </a> <a href="http://g.cn">g.cn </a> <!--style "display:block" 意思就是块,加了这个样式,一个元素会自动为一行,如果是链接的话,点击这个行任何地方都会有链接,而不只是点击链接的字才有链接-->


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> 测试form多一行效果 </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords" CONTENT=""><META NAME="Description" CONTENT=""></HEAD><BODY><form name="form1" style="display:inline"><input type="text" size="20"/></form><form name="form2" style="margin:0px;"><input type="text" size="20"/></form><form name="form3"><input type="text" size="20"/></form><form name="form3"><input type="text" size="20"/></form></BODY></HTML>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表