如何制作以移动设备为中心的自定义 WordPress 页脚

我想知道我是否可以放置任何@media CSS 代码来完成这项工作,或者对如何解决这个问题提供任何建议。



尚方宝剑之说
浏览 100回答 2
2回答

30秒到达战场

我的猜测是padding-left:200pxin.nonprofit导致了问题。尝试删除它。

摇曳的蔷薇

使用 padding-left: 10px;一直删除不是一个好习惯!您可以设置一个较低的值,例如 0px 或 10px,这是相同的结果。<div <?php echo mesmerize_footer_container( 'footer-simple' ) ?>>&nbsp; &nbsp; <div <?php echo mesmerize_footer_background( 'footer-content center-xs' ) ?>>&nbsp; &nbsp; &nbsp; &nbsp; <div class="gridContainer">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="row middle-xs footer-content-row">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="footer-content-col col-xs-12">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?phpecho '&nbsp;<html><style>.nonprofit {font-weight: bold;font-size: 15px;color: white;padding-left: 10px;display: block;align: right;}</style><p class="nonprofit"> © 2019 Veterans for Diversity, Inc.</br>Veterans for Diversity, Inc.® is a tax-exempt 501(C)(3) nonprofit organization.</p><style>.nonprofit {float: left;}</style><div class="nonprofit"><a href="https://uwm.edu/informationstudies/nonprofit/" target="_blank"><img src="https://veterans4diversity.org/wp-content/uploads/2019/11/nonprof-IT_icon.jpg" alt="UWM-NonProfIT" width="200" height="55" class="alignnone size-medium wp-image-234" srcset="https://veterans4diversity.org/wp-content/uploads/2019/11/nonprof-IT_icon.jpg, https://veterans4diversity.org/wp-content/uploads/2019/11/nonprof-IT_icon.jpg" sizes="(max-width: 300px) 100vw, 300px"></a></div></html>';?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; </div>
打开App,查看更多内容
随时随地看视频慕课网APP