http://zhidao.baidu.com/question/286649802.html
你说的 设置div1 a 和div2 a 我知道这个在CSS里面设置好了 但是 怎么把这个应用的 某个超链接上啊 比如说
<td width="90"><div align="center"><a href="index.html" target="_blank">系部首页</a></div></td>
我这个单元格的超链接需要应用div1 a 的样式 怎么改
如果是.{}那么<td class="div1a">
我的
div1 a:link {
font-family: "宋体";
font-size: 14px;
color: #000000;
text-decoration: none;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
div1 a:hover {
background-image: url(../imges/d1_01.jpg);
font-size: 15px;
color: #00FF00;
text-decoration: none;
}
div1 a {
display:block;
width:100%;
height:100%;
line-height: 35px;
color: #000000;
text-decoration: none;
font-size: 14px;
}
我这样的 然后 在有链接的那个 单元格 td里面 用.{}那么<td class="div1a">
当我输入class= 的时候 后面没有 div1 a 这个类 所以 就算输入进去了 也 没作用 应用不了 这个 样式
这两种方式有什么具体区别 具体怎么设置的