客户的企业网站需要将原本在底部的英文和中文语言图标换到右上角。这里直接添加一个DIV然后居右。
<div class=langbtn><a href="https://www.itbulu.com/" title="English"><img src="<?php bloginfo('template_directory'); ?>/images/en.png"></a> <a href="https://www.itbulu.com/" target="_blank" title="Chinese"><img src="<?php bloginfo('template_directory'); ?>/images/zh-hans.png"></a></div>
当然,对应我们需要提前准备2个图标。
.langbtn {width: 1100px;margin: 0 auto;text-align: right;margin-top: 5px;}
然后我们对于CSS进行调整位置。
原创文章,转载请注明出处:https://www.itbulu.com/langucss.html


