我想给我的表行提供斑马条纹效果.在所有其他浏览器中,可以使用CSS第n个子元素完成.但我也想做IE 8.那怎么办呢?
css compatibility css-selectors internet-explorer-8 ie8-compatibility-mode
当我将鼠标悬停在图像上时,我想从DIV标记中加载一些内容作为弹出文本.当我从鼠标离开该图像时,pop会消失,当我再次将鼠标悬停在图像上时,内容应显示为弹出文本.我正在使用HTML,Jquery,JS.如果我使用jquery load()方法获得解决方案,那将非常有用.让我知道你的回应.
我想用HTML创建一个具有可调整大小的列的表.我还想要滚动条到表,但滚动时表的标题应保持固定.
请帮忙.
我有两个表,其中包含id sample1和sample2.sample1包含<th class="header">和sample2包含<td class="desc">.我想要做的就是当我<th>在sample1中调整大小时,它也应该<td>在同一个同步中自动调整sample2中的大小.我正在使用jQuery resizeable()方法,但我没有得到它.
请帮忙.
这是代码供参考:
<script type="text/javascript" charset="utf-8">
$(function() {
$("#sample1 .header").resizable();
$("#sample2 .desc").resizable();
});
</script>
</head>
<body>
<div class="center" >
<table id="sample1" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th class="header">header</th><th class="header">header</th>
</tr>
</table>
<table id="sample2" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="desc">cell</td>
<td class="desc">cell</td>
</tr>
<tr>
<td class="desc">cell</td>
<td class="desc">cell</td>
</tr>
<tr>
<td class="desc">cell</td>
<td class="desc">cell</td>
</tr>
</table>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)