简体   繁体   中英

How to make table width extends fully when texts are just a few

I am using Gitbook editor and trying to make all the tables (but each with different length of texts, that's why some of them can be fully extended while others shrinks) equal width in the same page. But when I wrote the following tags in the markdown at the title row of table, it still doesn't work out. Does anyone know how I may fix it? Thank you!

|<table class="fixed" width="100%">公關後勤組</table>|

The appearance remains unchanged from these tags and it goes like the tables in fifth item as in the following link: http://derekya.gitbooks.io/disastermanagementmanual/content/zuo_ye_liu_cheng_v2.html

in your style.css, you have this rule:

.book .book-body .page-wrapper .page-inner section.normal table {
    display: block;
    width: 100%;
    overflow: auto;
}

remove "display: block;" to get the table to its normal display mode and it will expand to fill the width as intended. new rule should look like this :

.book .book-body .page-wrapper .page-inner section.normal table {
    width: 100%;
    overflow: auto;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM