我對列下面的標記:列有不同的寬度
<table class="b-hdfs__files-list">
<colgroup>
<col span="1" class="b-hdfs__files-list__item-property-col-width-selected">
<col span="1" class="b-hdfs__files-list__item-property-col-width-type">
<col span="1" class="b-hdfs__files-list__item-property-col-width-name">
<col span="1" class="b-hdfs__files-list__item-property-col-width-size">
<col span="1" class="b-hdfs__files-list__item-property-col-width-user">
<col span="1" class="b-hdfs__files-list__item-property-col-width-group">
<col span="1" class="b-hdfs__files-list__item-property-col-width-permissions">
<col span="1" class="b-hdfs__files-list__item-property-col-width-date">
</colgroup>
和CSS:
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-selected {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-type {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-name {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-size {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-user {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-group {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-permissions {
width: 50px;
}
.b-hdfs__files-list .b-hdfs__files-list__item-property-col-width-date {
width: 50px;
}
但是,雖然如預期每一列都是平等的,他們不是50像素寬,但33px。我想知道爲什麼。這是fiddler具有完整的標記和樣式。