【发布时间】:2016-04-30 00:39:06
【问题描述】:
在我的 wordpress 网站中,我在网站顶部的页面中有以下代码,用作主菜单:
<ul class="gk-short-menu">
<li data-scroll-reveal="enter bottom over .5s after .5s">
<a href="#locali">
<img id="loc" src="http://www.pasticceriaimpero.com/wordpress/wp-content/uploads/2016/04/locali.png" height="64" width="64"/>
<span id="loc-span">Locali</span>
</a>
</li>
<li data-scroll-reveal="enter bottom over .5s after .5s">
<a href="#laboratorio">
<img id="lab" src="http://www.pasticceriaimpero.com/wordpress/wp-content/uploads/2016/04/muffin.png" height="64" width="64"/>
<span id="lab-span">Laboratorio</span>
</a>
</li>
<li data-scroll-reveal="enter bottom over .5s after .5s">
<a href="#servizi">
<img id="serv" src="http://www.pasticceriaimpero.com/wordpress/wp-content/uploads/2016/04/cutlery.png" height="64" width="64"/>
<span id="serv-span">Servizi</span>
</a>
</li>
<li data-scroll-reveal="enter bottom over .5s after .5s">
<a href="#diconodinoi">
<img id="about" src="http://www.pasticceriaimpero.com/wordpress/wp-content/uploads/2016/04/aboutus.png" height="64" width="64"/>
<span id="about-span">Dicono di noi</span>
</a>
</li>
<li data-scroll-reveal="enter bottom over .5s after .5s">
<a href="#photogallery">
<img id="pic" src="http://www.pasticceriaimpero.com/wordpress/wp-content/uploads/2016/04/gallery.png" height="64" width="64"/>
<span id="pic-span">Photo Gallery</span>
</a>
</li>
<li data-scroll-reveal="enter bottom over .5s after .5s">
<a href="#contatti">
<img id="loc" src="http://www.pasticceriaimpero.com/wordpress/wp-content/uploads/2016/04/location.png" height="64" width="64"/>
<span id="loc-span">Contatti</span>
</a>
</li>
如您所见,我希望所有图标位于同一行并居中。我需要哪些 CSS 规则? 谢谢
【问题讨论】:
标签: html css html-lists