2017-04-19 13 views
0

私はhtmlテーブルを持っています。そのテーブルのカラムにはリストの内容がありますが、カラムのリスト表示に問題があります。リストのコンテンツが長すぎると、コンテンツが重なり合う境界線がモバイル画面に表示されたときに発生します。私は国境と重ならないようにしたいが、それでもやることはできない。liの内容が重複しないようにするカラムの境界線

これは簡単な問題視覚です。

enter image description here

これは、デスクトップブラウザで正しく表示する場合ですが、私は携帯電話の画面に移動するとき、私はこれを得ました。

enter image description here

これはコードです。

<table style="width: 100%; max-width: 100%; margin-bottom: 20px;"> 
    <thead> 
    <tr> 
     <th>Test</th> 
     <th>Test</th> 
     <th>Test</th> 
     <th>Test</th> 
    </tr> 
    </thead> 
    <tbody> 
    <tr> 
     <td>Content</td> 
     <td>Content</td> 
     <td> 
     <ul style="list-style: none; text-align: left;"> 
      <li>List Content List Content List Content List Content</li> 
     </ul> 
     </td> 
     <td>Content</td> 
    </tr> 
    </tbody> 
</table> 
+1

だけで正常に動作しているように私はあなたのコードで問題を参照してください傾けるあなたは、いくつかのコードを含めることができますか? – GvM

+0

はい、コードしてください。テーブルにインラインリストがある理由は何ですか? –

+0

@GvM私はちょうど標準コード表とul liを行います – Antonio

答えて

0

それは

tr td, 
 
tr th { 
 
    border: 1px solid; 
 
} 
 
ul { 
 
    padding: 0; 
 
}
<table style="width: 100%; max-width: 100%; margin-bottom: 20px;"> 
 
    <thead> 
 
    <tr> 
 
     <th>Test</th> 
 
     <th>Test</th> 
 
     <th>Test</th> 
 
     <th>Test</th> 
 
    </tr> 
 
    </thead> 
 
    <tbody> 
 
    <tr> 
 
     <td>Content</td> 
 
     <td>Content</td> 
 
     <td> 
 
     <ul style="list-style: none; text-align: left;"> 
 
      <li>List Content List Content List Content List ContentList Content List Content List Content List Content v List Content List Content</li> 
 
     </ul> 
 
     </td> 
 
     <td>Content</td> 
 
    </tr> 
 
    </tbody> 
 
</table>

+0

実際に私はモバイル画面でこれを持っています。私は再び質問を編集します。 – Antonio

+0

あなたはモバイル画面レイアウトを作るために何をしましたか? – GvM

+0

私は何もしません。それは私がモバイルスクリーンコードでやらなければならないことをここで全員に尋ねたいものです。 – Antonio

関連する問題