欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
Showing Hyperlink Cues with CSS (Ask the CSS Guy)

The ways to style visited links

There've been interesting parallel interview about :visited pseudo-class at CollyLogic which made me redo visited links at my blog. Here's explanation of some techniques, and since IE is the matter of past, some of these are not supported in it.

Some basic CSS knowledge is required to successfuly follow this article. Before you proceed, please make links visited and then press F5 (or Refresh) to trigger :visited pseudo class.

Line-Through

Really simple implementation, as the only effort you have to make is one line in your CSS file:

 

a:visited { text-decoration: line-through; }

It does something like this: visited link. Very simple to apply, but quite understanding for visitors.

Background-image

Thisone is also supported by most common browsers (including IE 5.5/Win andIE 6.0/Win). Some designers like to put it before actual text, but inthis example we'll position it after link text.

For that toachieve, we need some image, preferably .gif and we should make spaceafter link text and before next word in sentence. Make a 10px X 10px.gif in your image editor of choice. The space after link text shouldbe a bit wider than background image, so we'll set, approx. 12px:

 

a:visited { padding-right: 12px; }

Let's add background-image and adjust its' position:

 

a:visited { padding-right: 12px; background: url(visitedLink.gif) no-repeat 100% 50%; }

Again we should come up with something like this: visited link.

Now that you have such neat effect i guess you'd like to add some extra magic to it. If we define:

 

a:visited:hover { background-image: url(visitedHoverLink.gif) }

we're on good way to impress our audience – mouse over me!.

By going a step further:

 

a:visited { padding-right: 12px; background: url(visitedLink.gif) no-repeat 100% 50%; color: #aaa; text-decoration: none; }
a:visited:hover { background-image: url(visitedHoverLink.gif); color: #f00; }

we make it even more sexy (try mouseover effect).

:before and :after pseudo elements

Now that you have more clue about possibilities, meet the 'advanced' pseudo elements. Why advanced?

From the position of IEthey're advanced, because at the time of this writing, that browserdoesn't support them. Pseudo elements allow us more options to stylevisited links.

 

a:visited:after { content: " (you've visited this link before)"; }

will add the (you've visited this link before) right after main text – test link. Of course we might do something like:

 

a:visited:before { content: "(you've visited this link already) "; }

and it would appear like this: test link.

Obviously,text from this example is not very practical, but you got the point. Onthe other hand, shorter text or notes should work fine, so let see somepossibilities of styling:

 

a:visited:after { content: " (ok)"; font-size: 70%; }

smaller text after

 

a:visited:after { content: " (ok)"; font-size: 60%; text-transform: uppercase; }

smaller uppercase text after

 

a:visited:after { content: " (ok)"; font-size: 60%; text-transform: uppercase; color: #777; }

smaller uppercase text after

 

a:visited:after { content: " (ok)"; font-size: 60%; text-transform: uppercase; color: #777; }
a:visited:hover:after { content: " (hey! you've already been there!)"; font-size: 80%; text-transform: uppercase; color: #f00; }

smaller uppercase text after ← mouse over, please (for some unknown reason this doesn’t work in Safari and Omniweb).

Conclusion

CSSoffers various possibilities to make links more usable and preservetext readability at the same time. We need to differentiate visited andunvisited links, but we must keep text scannable and readable. Don'tforget to keep it moderate (as Cameron Moll, the Worn Master Jedi often says). Please, don't missuse or overuse this techniques.

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
創(chuàng )建具有視頻背景的網(wǎng)站| HTML和CSS
CSS 八種讓人眼前一亮的 HOVER 效果
div + css案例
如何用CSS制作橫向菜單?
A List Apart: Articles: Sliding Doors of CSS
div+css實(shí)現藍色vista風(fēng)格css導航菜單效果
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久