我正在设计一个HTML小网站。我有2页index.html和about.html。在index.html中,我有一个名为services的div。
的index.html
<div class="header-right">
<span class="menu"><img src="images/menu.png" alt=" "/></span>
<ul class="nav1">
<li><a href="index.html">Home</a></li>
<li class="act"><a href="about.html">About</a></li>
<li><a href="index.html#services" >Services</a></li>
<li><a href="index.html#work">Works</a></li>
<li><a href="#contact" class="scroll">Contact</a></li>
<li><a href="blog.html">Blog</a></li>
</ul>
</div>
在About.html中,我有一个名为Services的链接 About.html。
# List assemblies loaded
[appdomain]::currentdomain.getassemblies()
# May have to tweak 2nd argument to -like
$asm= [appdomain]::currentdomain.getassemblies() | ? name -like *npgssql*
# look at all the types in the assembly
$asm.gettypes() | out-gridview
# Pick a class that looks interesting, filter it out
$typeToExamine = $asm.gettypes() | ? name -like *whateverlooksinteresting*
$typeToExamine.getproperties()|select name
# or alternatively
$typeToExamine.getproperties()|out-gridview
# similarly with $typeToExamine.getmethods()
# Or an alternative to getMethods()/getProperties() is to create an instance
# of the type and use get-member
我的问题是
当我点击About.html页面中的“服务”链接时,它将转移到服务div,但它不稳定。在加载index.html页面时,它首次显示服务div,之后它将移动到页面顶部