r=rods; bug=17518; I updated the html.css file to select on 'a[href]' instead of 'a' so that the focus properties and related style properties would only apply to anchors with href's

This commit is contained in:
kipp%netscape.com 1999-11-01 22:54:14 +00:00
Родитель 71e4f3b611
Коммит 61db80a036
2 изменённых файлов: 14 добавлений и 32 удалений

Просмотреть файл

@ -202,26 +202,22 @@ q:after {
content: close-quote; content: close-quote;
} }
a:link { a[href]:link {
display: inline;
color: blue; color: blue;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
a:visited { a[href]:visited {
display: inline;
color: purple; color: purple;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
a:active { a[href]:active {
display: inline;
color: red; color: red;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
a:out-of-date { a[href]:out-of-date {
display: inline;
color: lime; color: lime;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
@ -425,9 +421,8 @@ img[align=left] {
img[align=right] { img[align=right] {
margin-left: 4px; margin-left: 4px;
} }
a:link img, a:visited img, a:active img, a[href]:link img, a[href]:visited img, a[href]:active img,
a:out-of-date img, img[usemap], object[usemap] { a[href]:out-of-date img, img[usemap], object[usemap] {
display: inline;
border: 2px solid; border: 2px solid;
cursor: pointer; cursor: pointer;
} }
@ -528,11 +523,7 @@ input[type=hidden] {
} }
/*------- Focus ------*/ /*------- Focus ------*/
a:focus { a[href]:focus, a[href]:focus img {
outline: 1px dotted black;
}
a:focus img {
outline: 1px dotted black; outline: 1px dotted black;
} }

Просмотреть файл

@ -202,26 +202,22 @@ q:after {
content: close-quote; content: close-quote;
} }
a:link { a[href]:link {
display: inline;
color: blue; color: blue;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
a:visited { a[href]:visited {
display: inline;
color: purple; color: purple;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
a:active { a[href]:active {
display: inline;
color: red; color: red;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
a:out-of-date { a[href]:out-of-date {
display: inline;
color: lime; color: lime;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
@ -425,9 +421,8 @@ img[align=left] {
img[align=right] { img[align=right] {
margin-left: 4px; margin-left: 4px;
} }
a:link img, a:visited img, a:active img, a[href]:link img, a[href]:visited img, a[href]:active img,
a:out-of-date img, img[usemap], object[usemap] { a[href]:out-of-date img, img[usemap], object[usemap] {
display: inline;
border: 2px solid; border: 2px solid;
cursor: pointer; cursor: pointer;
} }
@ -528,11 +523,7 @@ input[type=hidden] {
} }
/*------- Focus ------*/ /*------- Focus ------*/
a:focus { a[href]:focus, a[href]:focus img {
outline: 1px dotted black;
}
a:focus img {
outline: 1px dotted black; outline: 1px dotted black;
} }