链接在我不想要的地方继续 [英] Links Continue Where I Don't Want It

查看:82
本文介绍了链接在我不想要的地方继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的链接继续存在问题.我做了<"span">标记,这样我就可以说这是您发布的位置".我不希望它是一个链接,只有四个字母什么也没做,只是坐在那里,但是我的代码显然不是这样. <"textview">标签也是一个链接,我不知道发生了什么.
这是我到目前为止的内容:

So I am having a problem with my links carrying over. I made the <"span"> tag so I could just say "this is where you post". I don''t want it to be a link, just four letters that do nothing but sit there, but my code apparently says otherwise. The <"textview"> tag is also a link and I have no idea what''s going on.
This is what I have so far:

<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
body{
background-color:white;
}
.vcpostword{
color:orange;
}
.vcredbar{
background-color:darkred;
 color:orange;
font-family:sans;
text-align:left;
}
.vcnotebar{
float:left;
}
.vcposter, vccontent{
margin-left:100px;
border-left:1px solid grey;
padding:0em;
}
a:link, a:visited{
display:block;
font-weight:bold;
color:orange;
width:70px;
padding:7px;
text-align:left;
text-decoration:none;
}
a:hover, a:active{
color:darkred;
}
.vccontent{
}
</style>
</head>
<body>
<div class="vcredbar">
<h2 id="redbar">vocabularity</h2>
</div>
<div class="vcnotebar" id="sidebar">
<a id="prof" href="http://www.vocabularity.com">Profile<br/>
<a id="upd" href="http://www.vocabularity.com">Updates<br/>
<a id="strm" href="http://www.vocabularity.com">Stream<br/>
<a id="msg" href="http://www.vocabularity.com">Messages<br/>
</div>
<div class="vcposter">
<span class="vcpostword">Post</span>
<textarea align:top-center; rows="2" cols="50" title"quote-bar" placeholder="What's your quote?" maxlength="1000" decorated="true">
</textarea>
</div>
<div class="vccontent" id="content">

</div>
</body>
</html>



如果您能告诉我发生了什么,我将不胜感激.



If you can tell me what''s going on, I would greatly appreciate it.

推荐答案

现在我还没有研究HTML5,但是我确保您仍然必须关闭A标签,因此在您的html中添加</a>.
Now I haven''t look into HTML5 yet, but I''m sure you still have to close your a-tags, so add </a> to you html.


那是因为您的锚标签已打开.像下面一样关闭它们.


Thats because of your anchor tag was open. close them like below.


<body>
<div class="vcredbar">
<h2 id="redbar">vocabularity</h2>
</div>
<div class="vcnotebar" id="sidebar">
<a id="prof" href="http://www.vocabularity.com">Profile</a><br />
<a id="upd" href="http://www.vocabularity.com">Updates</a><br />
<a id="strm" href="http://www.vocabularity.com">Stream</a><br />
<a id="msg" href="http://www.vocabularity.com">Messages</a><br />
</div>
<div class="vcposter">
<span class="vcpostword">Post</span><br />
<textarea align:top-center; rows="2" cols="50" title"quote-bar" placeholder="What's your quote?" maxlength="1000" decorated="true">
</textarea>
</div>
<div class="vccontent" id="content">
 
</div>
</body>


这篇关于链接在我不想要的地方继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆