我必须在不使用CSS表格的情况下创建页面,只需内嵌样式。我可以拥有的唯一内部风格是:
body {
padding: 20px 20px 20px 20px;
background: url("http://ics.actonhighschool.ca/test/images/fence.jpg");
color: #333333; /* font color */
font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}
对于我所拥有的其中一个链接,这是我的代码:
This is the second paragraph. It is also short and boring. Let's create a
οnmοuseοver="this.style.textDecoration='none';
this.style.backgroundColor='#9400d3'; this.style.color='#ffffff';"
οnmοuseοut="this.style.textDecoration='underline';
this.style.color='#3e3e3e'; this.style.backgroundColor='';">
但是,在页面加载时,虽然链接显示为颜色#3e3e3e,但链接上的下划线是不同的颜色。但是,在触发“onmouseout”事件后,下划线与文本的颜色相匹配。如何在不使用样式或CSS的情况下解决此问题?