如何摆脱div之间的这种文本风格

时间:2014-03-27 09:33:22

标签: html

我有生成这些div的PHP页面但是当我在div之间使用Google Chrome中的inspect元素时,我看到" "(如图所示)。 我怎么摆脱他们? pic

session_start();
 ob_start();
    $valid_user_id = trim($_SESSION["VALID_USER_ID"]);
   if(isset($_SESSION["VALID_USER_ID"]) && !empty($valid_user_id)) {
  include 'twitterconnection.php';
    $statuses = $connection->get('statuses/home_timeline', array('count' => '50',      'exclude_replies' => true));
    $ids = array();
 foreach ($statuses as $item) {
    $ids[] = $item->id;
    if (preg_match('~\p{Arabic}~u', $item->text) == true) {
        if ($item->retweeted_status) {
            include 're_pic_save.php';
                if (preg_match('~\p{Arabic}~u', $item->user->name) == true) {
                    $dir = '<span><a href="/'.$item->user->screen_name.'" ><b>'.$item->user->name.' </b></a>Retweeted by<img src="http://khavan.tk/yashar/img/retweet.PNG" /></span></div></div>';
                } else {
                    $dir = '<span>Retweeted by <a  href="/'.$item->user->screen_name.'" ><b>'.$item->user->name.'</b></a><img src="http://khavan.tk/yashar/img/retweet.PNG" /></span></div></div>';
                }
                include 'retweet_handle_fa.php';
                echo '<div class="row" style="direction: rtl; text-align: right;">';
                echo '<div style="float: left; padding-left: 47px; font-size: 10px; padding-top: 0; padding-bottom: 5px;">';
                echo '<div>';
                echo $dir;
                echo '<div id="'.$item->retweeted_status->user->screen_name.'" class="mod-tg" style="padding-top: 17px;" data-modal="#notif-mod" onclick="send(this.id);"><input type="hidden" value="'.$item->retweeted_status->user->screen_name.'" />';
                echo '<div id="avatarr"><img style="cursor: pointer;" src="http://res.cloudinary.com/twitter/image/upload/v1393926049/avatars/'.$link.'" ></div><h2 style="cursor: pointer;display:inline;font-family: BKoodakBold,roboto;">'.$item->retweeted_status->user->name.'</h2><strong style="font-size:12px; float:left;cursor: pointer;color:#999;padding-top: 2px; padding-left: 3px;">'.$item->retweeted_status->user->screen_name.'<s>@</s></strong></div>';
                require_once 'timed.php';
                echo '<h6 style="color: #A88B2D;position: absolute; top: 35px;direction: ltr;">'.timePassed($item->retweeted_status->created_at).'</h6>';
                echo '<h4 class="farsi" style="padding-left: 20%;padding-top: 30px;line-height: 1.3;">'.$media0.'</h4>';
                echo '<div id="'.$item->id.'" onclick="show_tweet(this.id);" class="mod-tg" data-modal="#notif-mod" style="cursor: pointer;padding-left:48%;padding-top:2%;">';
                echo '<input type="hidden" value=" '.$item->id.'" />';
                echo '<span class="icon icon-circledown"></span></div></div>';

0 个答案:

没有答案