Do you want to improve this question?Edit your post to clarify the issue you are trying to resolve by adding details.
Closed 6 years ago.
6 years agoI want to implement the jQuery plug-in fixedTblHdrLftCol, but it doesn't take effect.
I'm a complete beginner, so I'd like to know how to plug in from scratch.
I think the author's page is the plug-in that fixes the header and left column of the table, but is this the correct one?Here is an explanation in Japanese and the rules are written.
"Also, at the bottom of the article, ""I use jQuery CDN and YUICSS Reset CDN."", so should I write it in HTML <head>
following the sample code of github?"
For example, in the samples/sample_0_basic.html in the sample code, <head>
says the following, so please refer to the source:
<!DOCTYPE html>
<html lang="en">
<head>
<metacharset="UTF-8">
<title>Sample-Basic</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.17.2/build/cssreset/cssreset-min.css">
<link rel="stylesheet" href="sample.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<scriptsrc="../jquery.fixedTblHdrLftCol.js"></script>
<script>
$(function(){
$('table').fixedTblHdrLftCol({
scroll: {
height: '200px',
width: '550px'
}
});
});
</script>
</head>
As you can see, it refers to two external site URLs, and jQuery must also be version 2.1.1 or later.
In addition, place jquery.fixedTblHdrLftCol.js in the directory above this HTML.
© 2024 OneMinuteCode. All rights reserved.