您好,感谢您阅读我的帖子。我对这一切都很陌生,所以如果有点草率,我很抱歉。
我建立了一个表格,我正在尝试使用悬停动作来放大一个单元格而不移动其余单元格。我也希望它以缩放为中心,它似乎从左上角作为它的轴缩放。下面是我的表格的编辑部分。目前,当我悬停时,它会缩放并将所有内容向右移动。我希望它可以缩放并将其他所有内容都保留在它的位置。如果您需要更多信息,请告诉我。顺便说一句,这都是针对 HTA 的,似乎有几件事在 HTA 中不起作用。谢谢!
CSS
.button1 {
color: red;
width:245px;
height:25px;
font-family: Tahoma;
font-size: 12px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
}
.button1:hover {
color: red;
width:245px;
height:25px;
font-family: Tahoma;
font-size: 14px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
zoom:150%;
}
.button2 {
width:245px;
height:25px;
font-family: Tahoma;
font-size: 12px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
}
.button2:hover {
display: table-cell;
width:245px;
height:25px !important;
font-family: Tahoma;
font-size: 14px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
zoom:150%;
}
HTML
<table class="table">
<tr width="25%" >
<td width="25%" valign="top">
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
</td>
</tr>
</table>