css - 在 Wordpress/Primer/Mins/Elementor 网站中使用 CSS 制作标题全宽
问题描述
我将 Wordpress 与父主题 Primer、子主题 Mins 和 Elementor 页面构建器一起使用。我想使用 CSS 使标题全宽。这是我现在拥有的:
#masthead {
margin: 0;
padding: 0;
width: 100%;
}
我似乎无法删除标题右侧的边距。该网站是:
http://coolco.samhillmusic.com/
感谢任何帮助!谢谢
解决方案
I see in at some point of your css a max-width: 1100px, to overwrite it, you can add a max-width to your #masthead - look the example below :)
#masthead {
margin: 0;
padding: 0;
width: 100%;
max-width: unset;
}
推荐阅读
- android - Android - Retrofit2 - Kotlin:REST API 响应格式与模型不同
- ethereum - 共识发生在 evm 执行之前还是之后?
- python - Emacs python嵌套循环缩进问题
- java - Spring JpaRepositoryn 中的 %Like% 查询
- python - 使用 cv2 从相机捕获视频会打印出满是零的矩阵
- hyperledger-fabric - 使用 cryptogen 和 configtxgen 创建的工件构建网络时,fabric-ca 未启动
- flutter - TextFormField 验证器不起作用 - 在 null 上调用了方法“验证”
- powershell - 尝试为每个用户确定 CSV 中最长的字符串
- php - 无法将表单方法从“发布”更改为“删除”
- javascript - 使用加密 nodejs 解密大文件