<h4>垂直的表头:</h4>
<table border="1">
<tr>
<th>姓名</th>
<td>Bill Gates</td>
</tr>
<tr>
<th>电话</th>
<td>555 77 854</td>
</tr>
<tr>
<th>电话</th>
<td>555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855</td>
</tr>
</table>
</body>
</html>
姓名 | Bill Gates |
---|---|
电话 | 555 77 854 |
电话 | 555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855555 77 855 |
左边的表头我想要显示成一行的,有什么办法吗?
另:求推荐一些不错的 table 的样式。
谢谢解答
给 固定宽度试试
Like +0
Add Reply
伊谢尔伦
Peter_Zhu2017-04-17 13:43:28
0 floor
Like +0
Add Reply
伊谢尔伦
刘奇2017-04-17 13:43:28
-1 floor
标签,可以向整个列应用样式,而不需要重复为每个单元格或每一行设置样式。
Like +0
Add Reply
伊谢尔伦
Popular Topics
More>
-
Registration domain name query tool
-
The difference between nohup and &
-
Introduction to the meaning of += in C language
-
What size is a5 paper
Popular Articles
-
Blast: A Layer 2 Solution Distributing Native Yield for ETH and Stablecoins
-
Bitcoin\'s Recovery Stalls as Dollar Rallies
-
Skibidi Tower Defense codes (June 2024)
-
The first real-time AI video generation technology in history: DiT universal, 10.6 times faster
-
How to forward Tencent News app. How to share Tencent News articles to friends or Moments.
Popular Tutorials
More>
Related Tutorials
Popular Recommendations
Latest courses
-
The latest ThinkPHP 5.1 world premiere video tutorial (60 days to become a PHP expert online training course)
1385222
-
PHP introductory tutorial one: Learn PHP in one week
4190227
-
JAVA Beginner's Video Tutorial
2269024
-
The latest ThinkPHP 5.1 world premiere video tutorial (60 days to become a PHP expert online training course)
1385222
-
JAVA Beginner's Video Tutorial
2269024
-
Little Turtle's zero-based introduction to learning Python video tutorial
486963
-
Quick introduction to web front-end development
212702
-
Master PS video tutorials from scratch
823934
-
[Web front-end] Node.js quick start
1641
-
Complete collection of foreign web development full-stack courses
1335
-
Go language practical GraphQL
1094
-
550W fan master learns JavaScript from scratch step by step
359
-
Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
5522
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
-
[form button] jQuery enterprise message form contact code
-
[Player special effects] HTML5 MP3 music box playback effects
-
[Menu navigation] HTML5 cool particle animation navigation menu special effects
-
[form button] jQuery visual form drag and drop editing code
-
[Player special effects] VUE.JS imitation Kugou music player code
-
[html5 special effects] Classic html5 pushing box game
-
[Picture special effects] jQuery scrolling to add or reduce image effects
-
[Photo album effects] CSS3 personal album cover hover zoom effect
-
About us
Disclaimer
Sitemap
- php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
写 CSS 的时候注意限定范围,不然所有 TH 都变成固定宽度了。
宽度不够放不下呗,加宽
通过使用
点击查看表格效果
这个表格算不算好看?
这个呢?算不算还不错?