td内のテキストの長さが異なる表があります。 td要素に固定幅を与え、td要素にtext-overflow: ellipsis
を使用して、テキスト全体が表示されないようにします。私はさまざまな方法を試しましたが、何も動作しません、誰かが私はこれを達成する方法で私を助けてください。表の要素の幅と省略記号を設定する
\t \t <table>
\t \t <tr>
\t \t <th>title</th>
\t \t <th>link</th>
\t \t <th>description</th>
\t \t <th>id</th>
\t \t <th>condition</th>
\t \t <th>price</th>
\t \t <th>availability</th>
\t \t <th>image_link</th>
\t \t <th>Shipping</th>
\t \t <th>"shipping weight"</th>
\t \t <th>gtin</th>
\t \t <th>brand</th>
\t \t <th>mpn</th>
\t \t <th>google_product_category</th>
\t \t <th>product_type</th>
\t \t <th>additional_image_link</th>
\t \t <th>color</th>
\t \t <th>size</th>
\t \t <th>Gender</th>
\t \t <th>age_group</th>
\t \t <th>item_group_id</th>
\t \t <th>sale_price</th>
\t \t <th>"sale price effective date"</th>
\t \t <th>size_type</th>
\t \t <th>size_system</th>
\t \t </tr>
\t \t <tr>
\t \t <td>"Metallic turquoise leather envelope clutch"</td>
\t \t <td style="width: 200px">https://www.runway2street.com/bags/clutch-bags/metallic-turquoise-leather-envelope-clutch</td>
\t \t <td>" This elegant jeweltoned metallic leather envelope clutch with wrist strap is perfect for a fancy night out! It has a natural cork trim, magnetic closure and a zipper pocket on the inside to fit a cell phone. All accessories and hardware on the bag are gold plated. Material: 100 leather, goldplated hardwareCountry of manufacture: Lebanon "</td>
\t \t <td>4</td>
\t \t <td>new</td>
\t \t <td>"370 USD"</td>
\t \t <td>"in stock"</td>
\t \t <td>http://az697095.vo.msecnd.net/vnext/products/3/12/Anja_Not-for-the-shy_accessories_bags_clutches_Turquoise-Cork_Metallic-turquoise-leather-envelope-clutch_38_320x480_v3.jpg</td>
\t \t <td>"US::Standard Free Shipping: 47 USD"</td>
\t \t <td></td>
\t \t <td></td>
\t \t <td>Anja</td>
\t \t <td>FALSE</td>
\t \t <td>"Apparel & Accessories > Handbags, Wallets & Cases > Handbags > Clutches & Special Occasion Bags"</td>
\t \t <td>"Clutch Bags"</td>
\t \t <td>http://az697095.vo.msecnd.net/vnext/products/3/12/Anja_Not-for-the-shy_accessories_bags_clutches_Turquoise-Cork_Metallic-turquoise-leather-envelope-clutch_35_320x480_v3.jpg</td>
\t \t <td>Turquoise/Cork</td>
\t \t <td>"One size"</td>
\t \t <td>Female</td>
\t \t <td>Adult</td>
\t \t <td>ANJAFW12mec.ct</td>
\t \t <td></td>
\t \t <td></td>
\t \t <td>Regular</td>
\t \t <td>US</td>
\t \t </tr>
\t \t </table>
があなたのCSSコードを追加してください動作するかを見てみましょう:https://css-tricks.com/snippets/css/truncate-string -with-ellipsis/ – Robert
こんにちは@yasarこの質問をお読みくださいhttp://stackoverflow.com/questions/14136076/scroll-bar-for-a-table-cell –