首页 > 解决方案 > 在 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>

标签: css

解决方案


这个问题现在已经被主题所有者 divi 提供的 css 解决了。


推荐阅读