更改p类中的链接颜色 [英] change link colors in p class

查看:59
本文介绍了更改p类中的链接颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i想要改变我的链接颜色在p class =" suchen":


这是我的html:


<?xml version =" 1.0" encoding =" iso-8859-1"?>

<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // DE"

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

< html xmlns =" http://www.w3。 org / 1999 / xhtml">

< head>

< title> Lippelt-B& auml; ckereimaschinen< / title>

< / head>

< body>

<! - ### DOCUMENT_BODY ### START - >

< div id =" logo">< div align =" right">< a href =" http://www.lippelt-back.com"

target =" _self">< img src =" http://lippelt-back.com/file$

< div id =" container">< div id =" top"> ### ROOTLINE ###< / div>< / div>

< div id =" leftnav"> ### CONTENT-LINKS# ##< / div>

< div id =" rightnav"> ### NAVI_LINKS ###< p class =" happy">< / p>< ; p

class =" suchen"> ### INFO ###< / p>< / div>

< div id =" content"> ## #CONTENT-RECHTS ###< / div>

< div id =" footer"> ### copyright ### ### LAST ###< / div>

< div id =" counter">< / div>

<! - ### DOCUMENT_BODY ### STOP - >

< / body>

< / html>

i测试了不同的选项,但我无法仅更改链接

p class =" suchen" ;.


任何提示?


cu denny



i want to change my link colors in the p class="suchen":

That is my html:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//DE"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lippelt-B&auml;ckereimaschinen</title>
</head>
<body>
<!-- ###DOCUMENT_BODY### START-->
<div id="logo"><div align="right"><a href="http://www.lippelt-back.com"
target="_self"><img src="http://lippelt-back.com/file$
<div id="container"><div id="top">###ROOTLINE###</div></div>
<div id="leftnav">###CONTENT-LINKS###</div>
<div id="rightnav">###NAVI_LINKS###<p class="happy"></p><p
class="suchen">###INFO###</p></div>
<div id="content">###CONTENT-RECHTS###</div>
<div id="footer">###copyright### ###LAST###</div>
<div id="counter"></div>
<!-- ###DOCUMENT_BODY### STOP-->
</body>
</html>
i tested different options, but i was not able to change only the link
colors in the p class="suchen".

any hints?

cu denny

推荐答案



< div id =" container">< div id =" top"> ### ROOTLINE ###< / div>< / div>

< div id =" leftnav"> ### CONTENT-LINKS ###< / div>

< div id =" rightnav"> ### NAVI_LINKS ###< p class =" happy">< / p>< p

class = QUOT;俗尘"> ### INFO ###< / p>< ; / div>

< div id =" content"> ### CONTENT-RECHTS ###< / div>

< div id = " footer"> ### copyright ### ### LAST ###< / div>

< div id =" counter">< / div>

<! - ### DOCUMENT_BODY ### STOP - >

< / body>

< / html>

i测试了不同的选项,但我无法仅更改p class =" suchen"中的链接

颜色。


任何提示?


cu denny

<div id="container"><div id="top">###ROOTLINE###</div></div>
<div id="leftnav">###CONTENT-LINKS###</div>
<div id="rightnav">###NAVI_LINKS###<p class="happy"></p><p
class="suchen">###INFO###</p></div>
<div id="content">###CONTENT-RECHTS###</div>
<div id="footer">###copyright### ###LAST###</div>
<div id="counter"></div>
<!-- ###DOCUMENT_BODY### STOP-->
</body>
</html>
i tested different options, but i was not able to change only the link
colors in the p class="suchen".

any hints?

cu denny


Denny Schierz写道:
Denny Schierz wrote:
我测试了不同的选项,但我无法仅更改p class =" suchen"中的链接
颜色。
i tested different options, but i was not able to change only the link
colors in the p class="suchen".




p.suchen a:link {color:...; }

p.suchen a:visited {color:...; }

p.suchen a:hover {color:...; }

p.suchen a:active {color:...; }


-

Mark。
http://tranchant.plus.com/


2004年9月30日星期四17:18:16 + 0200,Denny Schierz< cu *** @ gmx.de>写道:
On Thu, 30 Sep 2004 17:18:16 +0200, Denny Schierz <cu***@gmx.de> wrote:


我想改变我的链接颜色在p class =" suchen":

那个是我的HTML:


不要发布HTML,将URL发布到显示问题的页面。你的代码没有
甚至在分类的p元素中有一个锚元素。

i测试了不同的选项,但是我无法仅改变链接
p class =" suchen"中的颜色。

任何提示?


i want to change my link colors in the p class="suchen":

That is my html:
Don''t post HTML, post a URL to a page showing the issue. Your code didn''t
even have an anchor element in the classed p element.
i tested different options, but i was not able to change only the link
colors in the p class="suchen".

any hints?




p.suchen a:link {color:blue; }

p.suchen a:访问{color:purple;}

p.suchen a:hover {color:green;}

p .suchen a:主动{color:red;}



p.suchen a:link {color: blue;}
p.suchen a:visited {color: purple;}
p.suchen a:hover {color: green;}
p.suchen a:active {color: red;}


这篇关于更改p类中的链接颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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