半点优化网 http://www.bdxc.net/
当前位置首页 > 网站建设> 正文

HTML网页设计:如何设计点击图片后跳转到另外一个页面的指定位置?

2022-10-08 19:32:32 暂无评论 252 网站建设 静态   网页设计   作业

<ahref=#ct1>跳转到词条1</a>

<ahref=#ct2>跳转到词条2</a>

<br>

<divid=ct1>词条1</div>

<divid=ct2>词条2</div>

底下定好容器的id,在a的href中用#+id,就可以实现跳转了。

html静态网页设计大作业

<html>
<head>
<style>
html,body{margin:0px;text-align:center;}
.main{width:1000px;margin:0px auto;padding-top:30px;}
.title{font-size:18px;text-decoration:underline;font-weight:bold;}
.formtable{width:100%;font-size:12px;margin-top:20px;}
.lefttd{width:350px;text-align:right;}
.righttd{text-align:left;}
.etxt{width:300px;}
.etel{width:200px;}
.eta{width:320px;height:100px;}
.cinpt{text-align:center;padding-top:20px;}
</style>
</head>
<body>
<div class=main>
<div><span class=title>请留下个人资料</span></div>
<div>
<table class=formtable>
<tr><td class=lefttd>姓名:</td><td class=righttd><input type=text /></td></tr>
<tr><td class=lefttd>E-mail:</td><td class=righttd><input type=text class=etxt /></td></tr>
<tr><td class=lefttd>电话:</td><td class=righttd><input type=text class=etel /></td></tr>
<tr><td class=lefttd>性别:</td><td class=righttd><input type=radio checked=checked name=rd />女 <input type=radio checked=checked name=rd />男</td></tr>
<tr><td class=lefttd>年龄:</td><td class=righttd><select><option>20以下</option><option>20以上</option></select></td></tr>
<tr><td class=lefttd>留言板:</td><td class=righttd><textarea class=eta></textarea></td></tr>
<tr><td class=lefttd>您的爱好:</td><td class=righttd><input type=checkbox name=cb1 />运动 <input type=checkbox name=cb2 />阅读 <input type=checkbox name=cb2 />听音乐 <input type=checkbox name=cb2 />旅游</td></tr>
<tr><td colspan=2 class=cinpt><input type=button value=提交 /></td></tr>
</table>
</div>
</div>
</body>
</html>

随机文章


    Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/bdxc.net/e/class/connect.php) is not within the allowed path(s): (/www/wwwroot/www.bdxc.net/:/tmp/) in /www/wwwroot/www.bdxc.net/1.php on line 4

    Warning: require(/www/wwwroot/bdxc.net/e/class/connect.php): failed to open stream: Operation not permitted in /www/wwwroot/www.bdxc.net/1.php on line 4

    Fatal error: require(): Failed opening required '/www/wwwroot/bdxc.net/e/class/connect.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/www.bdxc.net/1.php on line 4