需要帮助在此样式声明中更改锚文本颜色 [英] Need help changing anchor text color in this style declaration

查看:56
本文介绍了需要帮助在此样式声明中更改锚文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< style>

div div table tr td a.navbar,div div table tr td font {display:

none;}

< / style>

< div class =" navigationbar"风格= QUOT;背景色:黑色;位置:

绝对值;左:50%;顶:127px; margin-left:-400px;宽度:800px;

身高:26px">

<! - 代码来这里 - >

< / div> ;


我无法更改< div>

标记内的锚标记文本的颜色。我知道它涉及一个涉及颜色的特定CSS声明,

但无论我把它放在哪里它都无法改变我声明的颜色。


什么应该我知道吗?


谢谢

菲尔

解决方案

ph ************** @ gmail.com 写道:

我该怎么办?




你应该在实际代码上张贴一个URL。


这些东西无法通过微小的不具代表性的样本来诊断 -

特别是当你甚至没有发布你所拥有的元素时

问题。


很可能它是一个选择性过于具体而且是b $ b因此无法匹配任何东西所有,或者

效果中的另一个CSS规则更加具体,因此迫使自己进入

元素安德。




Andy Dingley写道:

ph ************** @ gmail.com 写道:

我该怎么办?
你应该在实际代码上发布一个URL。



http://www.myspace.com/nordicmetalhead

这些东西无法通过微小的无代表性样本来诊断 -
特别是当你甚至没有发布你遇到
问题的元素时。

很可能它也是一个selctor'也是具体和
所以根本不匹配任何东西,或者
效果中的另一个CSS规则更加具体,因此强迫自己进入元素而不是。




以防万一这是完整的违规代码:


< STYLE> a,a.man,a:link,a:visited {font-family:georgia,arial,times

new roman; color :CC0000;字体大小:8磅; font-weight:normal;

text-decoration:none; font-style:normal} a:active,

a:hover {font-family:georgia,arial,times new roman; color:CC0000;

font-size:8pt ;字体重量:正常; text-decoration:underline;

font-style:normal;} td,table,tr,span,li,p,div,textarea,DIV,s9,

s10 ,常规{font-family:georgia,arial,times new roman; color:;

font-weight:normal; font-decoration:none;

font-style:normal; background-color:transparent} td,li,p,div,

textarea {font-family:georgia, arial,times new

roman; border-color:CC0000}

table {border-color:} a.navbar {font-family:georgia,arial,times new

roman; font-size:8pt; font-weight:normal} a.navbar:link {color:CC0000;}

a.navbar:active {color:CC0000;} a.navbar:visited {color:CC0000;}

a.navbar:hover {color:CC0000;} a.searchlinkSmall {fon t-family:georgia,

arial,times new roman; font-size:8pt; text-decoration:none;

font-weight:normal;} a.searchlinkSmall:link {color:}

a.searchlinkSmall:active {color:CC0000}

a.searchlinkSmall:visited {color:}

a.searchlinkSmall:hover {color:CC0000} body {font-family:georgia,arial,

次新

roman;背景颜色:EEEEDD;背景图片:url( http://valsignalandet.com/images/bg.jpg);

background-position:0%; background-repeat:重复;

background-attachment:fixed;}。nametext {font-family:georgia,arial,

times new roman; font-size:8pt;颜色:;

font-weight:normal;}。blacktext10 {font-family:georgia,arial,times new

roman; font-size:8pt;颜色:;

font-weight:normal;}。blacktext12 {font-family:georgia,arial,times new

roman; font-size:8pt;颜色:; font-weight:normal;} .btext,.itext,

..text {font-family:georgia,arial,times new roman; font-size:8pt;

颜色:; font-weight:normal;}。orangetext15 {font-family:georgia,arial,

times new roman; color:;

font-weight:normal;}。lightbluetext8 {font-family:georgia,arial,times

new roman; font-size:8pt;颜色:;

font-weight:normal;}。tmz_imp {font-family:arial; color:FF0000; font-weight:bold} a

img {} a :hover

img {} body {scrollbar-arrow-color :; scrollbar-Track-Color:EEEEDD; scrollbar-Highlight-Color :; scrollbar-base-color :; scrollbar-Face-Color: EEEEDD;滚动条 - 阴影颜色:;滚动条 - DarkShadow-Color:< / STYLE>< embed

allowScriptAccess =" never" style =''display:none''src =''''

AUTOSTART =''True''LOOP =''1''>< div align = center>< a

href = http://www.layoutpimper.com target = _blank>< img

src = http://i11.photobucket.com/albums/a167/myspacepimper /layout.gif

alt =用于Myspace和Teenchill.com的免费布局编辑器

宽度= 200高度= 50 border = 0>< BR> www。 layoutpimper.com< / a>< / div>


none;}< / style>< div class =" navigationbar" style =" background-color:Black;

position:absolute;左:50%;顶:127px; margin-left:-400px;宽度:

800px;身高:26px">

< table width =" 800"高度= QUOT; 26"边界=" 0" cellspacing =" 0"

cellpadding =" 0">

< tr valign =" middle">

< ; td align =" center">

< a href =" http://home.myspace.com/index.cfm?fuseaction = user"> Home< / a>

|


< a

href =" http://mail.myspace.com/index.cfm? fuseaction = mail.inbox"> Mail< / a>

|


< a

href =" http ://blog.myspace.com/index.cfm?fuseaction = blog.controlcenter"> Blog< / a>

|


< a

href =" http://forum.myspace.com/index.cfm?fuseaction = messageboard.categories"> Foru m< / a>

|


< a

href =" http://groups.myspace.com/index.cfm?fuseaction = groups.categories"> Groups< / a>

|


< a href =" http://valsignalandet.com"> V& auml; lsignalandet< / a>

|


< a href =" http://www.thosewhomourn.com">那些悼念的人< / a>

< / tr>< / td>< / table>< / div>


< table align =" center" border =" 0">

< tr>

< td bgcolor =" 000000">

< a HREF =" HTTP://valsignalandet.com" target =" _new">

< img

src =" http://valsignalandet.com/images/dreamfoto/a_whole_new_phil.jpg"

border =" 0" alt ="一个全新的菲尔 - 哥特版本 width =" 200"

height =" 120">

< / a>

< / td>

< td bgcolor =" 000000" valign =" top">

< a href =" http://valsignalandet.com" target =" _new">

< font color =" 000099" face ="马格德堡,音乐厅,Fette Fraktur,

Monotype Corsiva,Arial Narrow,Georgia,Verdana,Arial" size =" + 5">

Vad& auml; r det? Vad heter den tokig snubbe?

< / font>

< / a>

< / td>

< / tr>

< / table>


< font face =" Music Hall,Copperplate Gothic Bold,Arial Narrow,格鲁吉亚,

Verdana,Arial,Helvetica,sans-serif"大小= QUOT; + 2英寸color =" cc0000">


< a href =" http://valsignalandet.com" target =" _new">< font

face =" Magdeburg,Fette Fraktur,Monotype Corsiva,Copperplate Gothic

Bold,Georgia,Verdana,Arial,Helvetica ,sans-serif size =" + 2">我的

怪异的世界角落< / font>< / a>< br>< br>


< a href =" http://www.thosewhomourn.com" target =" _new">< font

face =" Magdeburg,Fette Fraktur,Monotype Corsiva,Copperplate Gothic

Bold,Georgia,Verdana,Arial,Helvetica ,sans-serif size =" + 2">我在哪里
导致< / font>< / a>< br>< br>


?? - 岁的程序员,哥特金属头,金属哥特,Pratar

Svenska,但认为宇宙的未来原因必须存在,每个人都要知道!

< / font>


ph ************** @ gmail.com 写道:

Andy Dingley写道:

ph ********* *****@gmail.com 写道:

我该怎么办?



你应该发一个URL到真实的代码。



http:// www。 myspace.com/nordicmetalhead




警告:在访问前请关闭扬声器。


也许这个s会有帮助吗?

< http://jigsaw.w3.org/css-validator/validator?profile = css2& warning = 2& uri = http%3A%2F%2F www.myspace .com%2Fnordicmetalhead>


这是相当混乱的CSS使用。

了解层叠样式表的级联部分之后我会建议重新开始。


不提到表嵌套..四个? ..深吗?


-

-bts

-警告:我为草坪鹿刹车


<style>
div div table tr td a.navbar, div div table tr td font {display:
none;}
</style>
<div class="navigationbar" style="background-color:Black; position:
absolute; left:50%; top:127px; margin-left: -400px; width: 800px;
height: 26px">
<!-- CODE GOES HERE -->
</div>

I am unable to change the color of the anchor tag text within the <div>
tags. I know it involves a particular CSS declaration involving color,
but no matter where I put it it fails to change to the color I declare.

What should I do?

Thanks
Phil

解决方案

ph**************@gmail.com wrote:

What should I do?



You should post a URL to the real code.

These things aren''t diagnosable through tiny unrepresentative samples -
especially when you didn''t even post the element you were having the
problem with.

Chances are though that it''s either a selctor that''s too specific and
so isn''t matching anything at all, or else there''s another CSS rule in
effect that is being even more specific and so is forcing itself onto
the element instead.



Andy Dingley wrote:

ph**************@gmail.com wrote:

What should I do?
You should post a URL to the real code.



http://www.myspace.com/nordicmetalhead

These things aren''t diagnosable through tiny unrepresentative samples -
especially when you didn''t even post the element you were having the
problem with.

Chances are though that it''s either a selctor that''s too specific and
so isn''t matching anything at all, or else there''s another CSS rule in
effect that is being even more specific and so is forcing itself onto
the element instead.



Just in case here''s the whole offending code:

<STYLE>a, a.man, a:link, a:visited{font-family:georgia, arial, times
new roman;color:CC0000; font-size:8pt; font-weight:normal;
text-decoration:none; font-style:normal} a:active,
a:hover{font-family:georgia, arial, times new roman;color:CC0000;
font-size:8pt; font-weight:normal; text-decoration:underline;
font-style:normal;}td, table, tr, span, li, p, div, textarea, DIV, s9,
s10, regular {font-family:georgia, arial, times new roman;color:;
font-weight:normal; font-decoration:none;
font-style:normal;background-color:transparent} td, li, p, div,
textarea {font-family:georgia, arial, times new
roman;border-color:CC0000}
table{border-color:}a.navbar{font-family:georgia, arial, times new
roman;font-size:8pt; font-weight:normal} a.navbar:link{color:CC0000;}
a.navbar:active{color:CC0000;} a.navbar:visited{color:CC0000;}
a.navbar:hover{color:CC0000;}a.searchlinkSmall{fon t-family:georgia,
arial, times new roman;font-size:8pt; text-decoration:none;
font-weight:normal;} a.searchlinkSmall:link{color:}
a.searchlinkSmall:active{color:CC0000}
a.searchlinkSmall:visited{color:}
a.searchlinkSmall:hover{color:CC0000}body{font-family:georgia, arial,
times new
roman;background-color:EEEEDD;background-image:url(http://valsignalandet.com/images/bg.jpg);
background-position:0%; background-repeat:repeat;
background-attachment:fixed;}.nametext{font-family:georgia, arial,
times new roman;font-size:8pt;color:;
font-weight:normal;}.blacktext10{font-family:georgia, arial, times new
roman;font-size:8pt; color:;
font-weight:normal;}.blacktext12{font-family:georgia, arial, times new
roman;font-size:8pt; color:; font-weight:normal;}.btext, .itext,
..text{font-family:georgia, arial, times new roman;font-size:8pt;
color:; font-weight:normal;}.orangetext15{font-family:georgia, arial,
times new roman;color:;
font-weight:normal;}.lightbluetext8{font-family:georgia, arial, times
new roman;font-size:8pt; color:;
font-weight:normal;}.tmz_imp{font-family:arial;color:FF0000;font-weight:bold}a
img{}a:hover
img{}body{scrollbar-arrow-color:;scrollbar-Track-Color:EEEEDD;scrollbar-Highlight-Color:;scrollbar-base-color:;scrollbar-Face-Color:EEEEDD;scrollbar-Shadow-Color:;scrollbar-DarkShadow-Color:</STYLE><embed
allowScriptAccess="never" style=''display:none'' src=''''
AUTOSTART=''True'' LOOP=''1''><div align=center><a
href=http://www.layoutpimper.com target=_blank><img
src=http://i11.photobucket.com/albums/a167/myspacepimper/layout.gif
alt=Layoutpimper.com Free Layout Editor for Myspace and Teenchill.com
width=200 height=50 border=0><BR>www.layoutpimper.com</a></div>

<style>div div table tr td a.navbar, div div table tr td font {display:
none;}</style><div class="navigationbar" style="background-color:Black;
position: absolute; left:50%; top:127px; margin-left: -400px; width:
800px; height: 26px">
<table width="800" height="26" border="0" cellspacing="0"
cellpadding="0">
<tr valign="middle">
<td align="center">
<a href="http://home.myspace.com/index.cfm?fuseaction=user">Home</a>
|

<a
href="http://mail.myspace.com/index.cfm?fuseaction=mail.inbox">Mail</a>
|

<a
href="http://blog.myspace.com/index.cfm?fuseaction=blog.controlcenter">Blog</a>
|

<a
href="http://forum.myspace.com/index.cfm?fuseaction=messageboard.categories">Foru m</a>
|

<a
href="http://groups.myspace.com/index.cfm?fuseaction=groups.categories">Groups</a>
|

<a href="http://valsignalandet.com">V&auml;lsignalandet</a>
|

<a href="http://www.thosewhomourn.com">Those Who Mourn</a>
</tr></td></table></div>

<table align="center" border="0">
<tr>
<td bgcolor="000000">
<a href="http://valsignalandet.com" target="_new">
<img
src="http://valsignalandet.com/images/dreamfoto/a_whole_new_phil.jpg"
border="0" alt="A Whole New Phil - The Goth Version" width="200"
height="120">
</a>
</td>
<td bgcolor="000000" valign="top">
<a href="http://valsignalandet.com" target="_new">
<font color="000099" face="Magdeburg, Music Hall, Fette Fraktur,
Monotype Corsiva, Arial Narrow, Georgia, Verdana, Arial" size="+5">
Vad &auml;r det? Vad heter den tokig snubbe?
</font>
</a>
</td>
</tr>
</table>

<font face="Music Hall, Copperplate Gothic Bold, Arial Narrow, Georgia,
Verdana, Arial, Helvetica, sans-serif" size="+2" color="cc0000">

<a href="http://valsignalandet.com" target="_new"><font
face="Magdeburg, Fette Fraktur, Monotype Corsiva, Copperplate Gothic
Bold, Georgia, Verdana, Arial, Helvetica, sans-serif" size="+2">My
freakish corner of the world</font></a><br><br>

<a href="http://www.thosewhomourn.com" target="_new"><font
face="Magdeburg, Fette Fraktur, Monotype Corsiva, Copperplate Gothic
Bold, Georgia, Verdana, Arial, Helvetica, sans-serif" size="+2">Where I
am lead to be</font></a><br><br>

??-year old programmer, gothic metalhead, metallic goth, Pratar
Svenska, but thinks the Uncaused Cause of the Universe must exist for
everyone to know!

</font>


ph**************@gmail.com wrote:

Andy Dingley wrote:

ph**************@gmail.com wrote:

What should I do?



You should post a URL to the real code.



http://www.myspace.com/nordicmetalhead



Warning: turn down your speakers before visiting.

Perhaps this will help?
<http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2F www.myspace.com%2Fnordicmetalhead>

That is quite a jumble of CSS used. I''d recommend starting over, after
learning about the Cascading part of Cascading Style Sheets.

Not to mentioned tables nested .. four? .. deep?

--
-bts
-Warning: I brake for lawn deer


这篇关于需要帮助在此样式声明中更改锚文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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