1.用position:fixed来使模块实现滑动状态,用left:95%和height:100%实现定位;

<div style="width: 5%; height:100%;position:fixed; left:95%;">
<%
for (int i = 65; i <= 90; i++)
{
char ch;
ch = Convert.ToChar(i);
%>
<div style="width: 100%; height:3.7%">
<a href="#<%=ch %>" style="color: Green; width: 100%;font-weight: 600; ">
<%=ch %>&nbsp;&nbsp;&nbsp;&nbsp;</a></div>
<%
}
%>
</div>

 posted on 2013-06-24 16:53  nick_zhang  阅读(119)  评论(0编辑  收藏  举报