| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 662 人关注过本帖
标题:那位大侠可以教我一下伪类的用法
只看楼主 加入收藏
wonderfulday
Rank: 1
等 级:新手上路
帖 子:97
专家分:0
注 册:2004-7-28
收藏
 问题点数:0 回复次数:2 
那位大侠可以教我一下伪类的用法
<style>
a.demo{background:#F0EBD6;padding:8px;width:240px;text-decoration:none;color:#000000;}
a.demhover{background:#FFC080;color:#000000;}
a.demactive{background:#CCCFFF;color:#000000;}
a.demvisited{background:#FF3300;color:#000000;}
#idCodeDiv{width:100%;padding:4px;font-family:verdana,tahoma;margin:12px 0px 0px 0px;background-color:#EEEEEE;font-weight:bold;}
</style>


<a class=demo href="none.html" onclick="return false;">With a hush upon the marsh , the afternoon slid . Into the late, immobile period, The sun glazing the reeds and coating the limestone quarry as I, in repose With the marsh, bathed in solitude and splendor.</a>
<br>
<br>
<div id=idCodeDiv>a :link{background:#F0EBD6;padding:8px;width:240px;text-decoration:none;color:#000000;}<br>a :hover{background:#FFC080;color:#000000;}<br>a :active{background:#CCCFFF;color:#000000;}<br>a :visited{background:#FF3300;color:#00000</div>
搜索更多相关主题的帖子: 用法 
2005-03-22 00:45
wonderfulday
Rank: 1
等 级:新手上路
帖 子:97
专家分:0
注 册:2004-7-28
收藏
得分:0 
看不明白,谁能解释一下

2005-03-22 00:46
jacky
Rank: 1
等 级:新手上路
帖 子:104
专家分:0
注 册:2004-12-17
收藏
得分:0 
就比如说这一句吧
p{first-letter:300%;}
意思是说p这个段落的首写字母比其它的大三倍
这个first-letter就叫伪类了
2005-04-20 15:30
快速回复:那位大侠可以教我一下伪类的用法
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020452 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved