gpt4 book ai didi

jquery - 如何获得标题使用表格的响应式粘性标题?

转载 作者:太空宇宙 更新时间:2023-11-04 08:34:57 24 4
gpt4 key购买 nike

$(window).scroll(function() {
if ($(this).scrollTop() > 150){
$('#header').addClass("sticky");
}
else{
$('#header').removeClass("sticky");
}
});
#header
{
text-align: center;
font-size: 16px;
line-height: 108px;
height: 108px;
background: #335C7D;
color: #fff;
font-family: 'PT Sans', sans-serif;

// set animation
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
display:none;
}

#header.sticky
{
position: fixed;
font-size: 12px;
line-height: 20px;
height: 48px;
background: #827f7b;
text-align: left;
z-index: 99999;
display: inherit;
width: 100%;
top:0;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table class="table table-hover table-responsive" id="tab">

<tr id="example" class="disappear">
<td width="200px" id="text" style="font-weight: bold">content</td>
<td width="40px"><label>Never</br><input type="radio" name="ExpF" disabled /></label></td>
<td width="40px"><label>Rarely</br><input type="radio" name="ExpF" disabled checked="checked"></label></td>
<td width="40px"><label>Occasionally</br><input type="radio" name="ExpF" disabled></label></td>
<td width="40px"><label>Often</br><input type="radio" name="ExpF" disabled></label></td>
<td width="30px"><label>Constantly</br><input type="radio" name="ExpF" disabled></label></td>
<td width="50px" bgcolor="Gainsboro"><label>Negligible</br><input type="radio" name="ExpI" disabled></label></td>
<td width="50px" bgcolor="Gainsboro"><label>Mild</br><input type="radio" name="ExpI" disabled></label></td>
<td width="50px" bgcolor="Gainsboro"><label>Moderate</br><input type="radio" name="ExpI" checked="checked" disabled></label></td>
<td width="50px" bgcolor="Gainsboro"><label>Severe</br><input type="radio" name="ExpI" disabled></label></td>
<td width="120px" bgcolor="Gainsboro"><label>Extremely severe</br><input type="radio" name="ExpI" disabled></label></td>
<td width="30px"></td>
<td width="30px" bgcolor="Gainsboro"></td>
</tr>


<tr id="header">
<td width="230px"></td>
<td width="40px">Never</td>
<td width="40px">Rarely</td>
<td width="40px">Occasionally</td>
<td width="40px">Often</td>
<td width="30px">Constantly</td>
<td width="50px">Negligible</td>
<td width="50px">Mild</td>
<td width="50px">Moderate</td>
<td width="50px">Severe</td>
<td width="140px">Extremely severe</td>
<td width="20px"></td>
<td width="30px"></td>
</tr>

<tr id="empty">
<td width="200px" id="text"></td>
<td width="40px"></td>
<td width="40px"></td>
<td width="40px"></td>
<td width="40px"></td>
<td width="30px"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="120px" bgcolor="Gainsboro"></td>
<td width="30px">F</td>
<td width="30px" bgcolor="Gainsboro">I</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="0"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="1"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="2"></label></td>
<td width="40px"><label><input type="radio" name="Fr1" class="allrb Fr" value="3"></label></td>
<td width="30px"><label><input type="radio" name="Fr1" class="allrb Fr" value="4"></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="0" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="1" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="2" ></label></td>
<td width="50px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="3" ></label></td>
<td width="120px" bgcolor="Gainsboro"><label><input type="radio" name="Ir1" class="allrb Ir" value="4" ></label></td>
<td width="30px"><input type="text" class="numFr" name="numFr1" id="numFr1" disabled></td>
<td width="30px" bgcolor="Gainsboro"><input type="text" class="numIr" name="numIr1" id="numIr1" disabled></td>
</tr>

</table>

我打算在用户滚动整行评级指南时出现一个粘性标题(用户很容易看到评级指南而不是所有空的单选框,这对用户来说会很困惑。)所以我写了一个名为#header 的表格行,一开始是隐藏的,当break height value(150px)时出现。

我的问题是:

1) 当我调整浏览器大小时,如何确保所有对齐都正确?因为如果我调整浏览器大小,评级指南的对齐方式将不正确。

2)如何使用检查用户是否滑过#header 行而不是直接设置中断高度值(150px)的方法将类添加到我的#header 行,这是因为如果我调整浏览器大小,它会出现得更早而不是正确的位置。

这是 jsfiddle。 https://jsfiddle.net/k77vhf14/

谢谢。

最佳答案

我根据你的要求写了一个代码

问题是当 #headerposition:fixed 时,td 的宽度被考虑在内,而 td #example 的宽度,不考虑

以后你应该知道 td { width:number px } 不起作用,你需要使用 min-width:

无论如何,所以我使用 for 循环#example td 的宽度添加到相应的 #header td

还根据 #header 行高在滚动时添加了动态条件

希望这对你有好处

查看代码片段或 > Fiddle

var headHeight = $("#header").height(),
tdlength = $("#example td").length
for (i = 0; i < tdlength; i++) {
var tdWidth = $("#example td:eq(" + i + ")").width()
$("#header td:eq(" + i + ")").css({
"min-width": tdWidth,
"width": tdWidth
})
}

$(window).on("scroll", function() {
if ($(this).scrollTop() > headHeight) {
$('#header').addClass("sticky");
} else {
$('#header').removeClass("sticky");
}
});
#header {
text-align: center;
font-size: 12px;
line-height: 108px;
height: 108px;
background: #335C7D;
color: #fff;
font-family: 'PT Sans', sans-serif;
display: none;
// set animation
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
position: fixed;
top: 0;
width: 100%;
left: 0;
}
label {
font-size: 15px;
}
td {
font-size: 14px;
}
#header td:first-child {
visibility: hidden
}
#header.sticky td:not(:first-child) {
font-size: 12px;
}
#header.sticky {
font-size: 12px;
line-height: 20px;
height: 48px;
background: #827f7b;
text-align: center;
z-index: 99999;
display: table-row;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="mata">

</div>
<table class="table table-hover table-responsive" id="tab">

<tr id="example" class="disappear">
<td width="200px" id="text" style="font-weight: bold">content</td>
<td width="40px">
<label>Never</br>
<input type="radio" name="ExpF" disabled />
</label>
</td>
<td width="40px">
<label>Rarely</br>
<input type="radio" name="ExpF" disabled checked="checked">
</label>
</td>
<td width="40px">
<label>Occasionally</br>
<input type="radio" name="ExpF" disabled>
</label>
</td>
<td width="40px">
<label>Often</br>
<input type="radio" name="ExpF" disabled>
</label>
</td>
<td width="30px">
<label>Constantly</br>
<input type="radio" name="ExpF" disabled>
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>Negligible</br>
<input type="radio" name="ExpI" disabled>
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>Mild</br>
<input type="radio" name="ExpI" disabled>
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>Moderate</br>
<input type="radio" name="ExpI" checked="checked" disabled>
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>Severe</br>
<input type="radio" name="ExpI" disabled>
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>Extremely severe</br>
<input type="radio" name="ExpI" disabled>
</label>
</td>
<td width="30px"></td>
<td width="30px" bgcolor="Gainsboro"></td>
</tr>


<tr id="header">
<td width="">Content</td>
<td width="40px">Never</td>
<td width="40px">Rarely</td>
<td width="40px">Occasionally</td>
<td width="40px">Often</td>
<td width="30px">Constantly</td>
<td width="50px">Negligible</td>
<td width="50px">Mild</td>
<td width="50px">Moderate</td>
<td width="50px">Severe</td>
<td width="40px">Extremely severe</td>
<td width="20px"></td>
<td width="30px"></td>
</tr>

<tr id="empty">
<td width="200px" id="text"></td>
<td width="40px"></td>
<td width="40px"></td>
<td width="40px"></td>
<td width="40px"></td>
<td width="30px"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="50px" bgcolor="Gainsboro"></td>
<td width="120px" bgcolor="Gainsboro"></td>
<td width="30px">F</td>
<td width="30px" bgcolor="Gainsboro">I</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>

<tr id="alertr1" name="v">
<td width="200px" id="text">Content</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="0">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="1">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="2">
</label>
</td>
<td width="40px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="3">
</label>
</td>
<td width="30px">
<label>
<input type="radio" name="Fr1" class="allrb Fr" value="4">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="0">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="1">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="2">
</label>
</td>
<td width="50px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="3">
</label>
</td>
<td width="120px" bgcolor="Gainsboro">
<label>
<input type="radio" name="Ir1" class="allrb Ir" value="4">
</label>
</td>
<td width="30px">
<input type="text" class="numFr" name="numFr1" id="numFr1" disabled>
</td>
<td width="30px" bgcolor="Gainsboro">
<input type="text" class="numIr" name="numIr1" id="numIr1" disabled>
</td>
</tr>








</table>

关于jquery - 如何获得标题使用表格的响应式粘性标题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44538899/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com