FrontPage2000中使用层叠样式表
作者:李先武 来源:赛迪网 添加时间:2006-5-21 9:19:56 
图1
| h1 { font-size : 48; font-family : 宋体; color : blue; font-style : italic; } h2 { font-size : 24; color : red; font-family : 宋体; } h3 { font-size : 16; color : red; font-family : 宋体; } a { font-size : 12; font-family : 宋体; color : blue; text-decoration : underline; } a:visited { font-size : 12; font-family : 宋体; color : purple; text-decoration : underline; } a:active { font-size : 12; font-family : 宋体; color : green; text-decoration : underline; } a:hover { font-size : 12; font-family : 宋体; color : red; text-decoration : underline; } body { font-size : 12; font-family : 宋体; color : blue; } |
链接了这个示例的样式表文件的web页效果是这样的:未浏览过的链接是蓝色12号带下划线宋体字(对应上面的a),鼠标划过时变红色(其它不变,对应上面的a:hover),浏览过的链接是紫色12号带下划线宋体字(对应上面的a:visited),当前激活的链接是绿色12号带下划线宋体字(对应上面的a:active)。h1、h2、h3分别对应一、二、三级标题。在FrontPage 2000中只要将单元格中链接文字的“样式”设为“普通”,“字体”设为“(默认字体)”,“字号”设为“普通”就可以看到以上的效果,标题的设定与此类似。
站内搜索