固定导航例子

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

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

原文地址:https://www.cnblogs.com/nickzhang/p/3152812.html