css - 在 Divi 主题中删除边距的问题
问题描述
我正在 Divi 做一个项目。我有 2 个无法解决的问题。第一个问题是我无法删除 divi 中的边距。在该部分中有 2 个边距,一个在左边,一个在右边,但我只能去掉一个,不能同时去掉两个。我使用的css如下
#tasktrackxx{
background-image:url(https://www.greenpassage.co.uk/wp-content/uploads/2020/01/2020-01-09_20-38-36.png);
margin-left: 0px;
margin-right: 0px;
margin-top: 10px;
height:650px;
}
<html>
<head>
<script src="../wp-content/plugins/getaddress/dist/js/jquery.js"></script>
<script src="../wp-content/plugins/getaddress/dist/js/timeline.min.js"></script>
<link rel="stylesheet" href="../wp-content/plugins/getaddress/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="../wp-content/plugins/getaddress/dist/css/timeline.min.css" />
</head>
<body>
<div class="container" id="tasktrackxx">
<div id="tasktrack">
<div class="panel panel-default">
<div class="panel-heading">
<form action="" method="post">
<div class="main-div">
<div class="pcode1">
<table style="border:0px!important;border-top-width: 0px;">
<tr>
<td style="border-bottom: 1px;border-top-width: 0px!important;width: 314px;">
<input type="text" name="task_id" style="border:0px;height:45px; border-radius:20px!important; width: 250px;padding:10px!important"placeholder="Enter your Tracking ID" value="<?= isset($_POST['task_id']) ? $_POST['task_id'] : '' ?>" required="required"></td>
<td style="border-top-width: 0px!important;"><button type="submit" name="task-track" style="border:0px!important;width:150px;" class="btn btn-default getCalculation btn-amount" alt="Submit">Submit</button></td>
</tr>
</table>
</div>
</div>
</form>
</div>
<div class="panel-body">
<div class="timeline">
<div class="timeline__wrap">
<div class="timeline__items">
<?php
if(isset($data) && $data!='' && $data->state!='') {
$Xstate=$data->state;
for ($row = 0; $row < $Xstate; $row++){
?>
<div class="timeline__item">
<div class="timeline__content">
<?php
for ($col = 0; $col < 1; $col++) {
?>
<h2><?php echo $state[$row][1]; ?></h2>
<p><?php echo $state[$row][2]; ?></p>
<?php }?>
</div>
</div>
<?php
}}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
解决方案
这个问题现在已经被主题所有者 divi 提供的 css 解决了。
推荐阅读
- reactjs - 带有 setState 和多个组件的空白页
- c++ - 在 llvm - windows 中仅安装 clang 和 clang++
- javascript - 如何通过 React 在 p5 中使用 async 和 await?
- google-api - Display & Video 360 无权尝试对 ID 为 PARTNER 的操作
- python-3.x - 在 TensorFlow 中使用 SSIM 损失返回 NaN 值
- regex - 谷歌表格查找和替换正则表达式
- unix - 是否可以使用 unix 对话框输入框进行多行输入
- python - 在 x 轴上绘制元组列表
- ansible - 如何在 ansible playbook 中漂亮地打印电子邮件正文?
- java - 是否可以在网络浏览器中打开 .pdf 文件而不是下载?