伸缩装车机求购:HTML语言有关问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/09 02:26:53
一、如何在同一页面中设设置不同的超链接形式。例如在同一页面中,在两个不同的地方,一个地方的链接我想让它有下划线,另一个地方我不想让它有下划线
二、另外,如何在同一页面中设置有多个页面,使每个页面都有自己的滚动条

谢谢!~

一、用Css完全可以实现
<style>

A.Main:active
{
FONT-SIZE:12px;
TEXT-decoration : underline;
COLOR:#003366;
}
A.Main:link
{
FONT-SIZE:12px;
TEXT-decoration : none;
COLOR:#003366;
}
A.Main:visited
{
FONT-SIZE:12px;
TEXT-decoration : none;
COLOR:#003366;
}
A.Main:hover
{
FONT-SIZE:12px;
TEXT-decoration : underline;
COLOR:#FF0000;
}

A.Selected
{
FONT-SIZE:12px;
TEXT-decoration : none;
COLOR:#003366;
}
A.Selected:active
{
FONT-SIZE:12px;
TEXT-decoration : underline;
COLOR:#003366;
}
A.Selected:link
{
FONT-SIZE:12px;
TEXT-decoration : underline;
COLOR:#003366;
}
A.Selected:visited
{
FONT-SIZE:12px;
TEXT-decoration : underline;
COLOR:#003366;
}
A.Selected:hover
{
FONT-SIZE:12px;
TEXT-decoration : none;
COLOR:#FF0000;
}
</style>
<a href="#" class="Main">aaaa</a>
<a href="#" class="Selected">bbbb</a>

二、用柜架实现

柜架页面的代码:

<html>

<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>

<frameset framespacing="0" border="0" frameborder="0" rows="64,*">
<frame name="banner" scrolling="yes" noresize target="contents" src="new_page_3.htm">
<frameset cols="150,*">
<frame name="contents" target="main" src="new_page_2.htm">
<frame name="main" src="new_page_4.htm">
</frameset>
<noframes>
<body>

<p>此网页使用了框架,但您的浏览器不支持框架。</p>

</body>
</noframes>
</frameset>

</html>

不行!

<a href="1.htm">有下划线</a>
<a href="1.htm" style="TEXT-DECORATION:none">不想让它有下划线</a>

<iframe>或<frameset>

http://www.hongen.com/pc/homepage/fp2k/fp2k0701.htm

当然可以的,调用不同的CSS

<style>
.link_style_0{
text-decoration:none;
}
.link_style_0{
text-decoration:underline;
}
</style>
<a href='#' class="link_stye_0">no underline</a>
<a href='#' class="link_stye_1">has underline</a>
<a href='#' class="link_stye_0">no underline</a>
<a href='#' class="link_stye_1">has underline</a>

用css,一次设置,多次使用,详细参考css相关内容..^_^

页面包含问题,可以使用frameset或者iframe,且不同的页面可以设置不同的滚动条样式,使用css定义..详细参考css

顺便建议去下载个css2.0(chm格式)来玩玩..^_^