求教:如何用angularjs实现表格首列固定_html/css_WEB-ITnose
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了求教:如何用angularjs实现表格首列固定_html/css_WEB-ITnose,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含5820字,纯文字阅读大概需要9分钟。
内容图文
![求教:如何用angularjs实现表格首列固定_html/css_WEB-ITnose](/upload/InfoBanner/zyjiaocheng/401/0b44e1f65db64fbe95e7bd18769b71dc.jpg)
回复讨论(解决方案)
没图帮不了你,说实话你完全可以这样,
第一列是一个表格,其余列是一个表格,这样就可以了
我的笔记
{{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }}
myTodoApp.js:
var app = angular.module("myTodoApp",[]);
myTodoCtrl.js:
app.controller("myTodoCtrl",function($scope){ $scope.message=""; $scope.firstnames=[{"Name" : "Alfreds Futterkiste","City" : "Berlin","Country" : "Germany"},{"Name" : "Berglunds snabbköp","City" : "Luleå","Country" : "Sweden"},{"Name" : "Centro comercial Moctezuma","City" : "México D.F.","Country" : "Mexico"},{"Name" : "Ernst Handel","City" : "Graz","Country" : "Austria"},{"Name" : "FISSA Fabrica Inter. Salchichas S.A.","City" : "Madrid","Country" : "Spain"},{"Name" : "Galería del gastrónomo","City" : "Barcelona","Country" : "Spain"}]; $scope.twonames=[{"Name" : "Alfreds Futterkiste","City" : "Berlin","Country" : "Germany"},{"Name" : "Berglunds snabbköp","City" : "Luleå","Country" : "Sweden"},{"Name" : "Centro comercial Moctezuma","City" : "México D.F.","Country" : "Mexico"},{"Name" : "Ernst Handel","City" : "Graz","Country" : "Austria"},{"Name" : "FISSA Fabrica Inter. Salchichas S.A.","City" : "Madrid","Country" : "Spain"},{"Name" : "Galería del gastrónomo","City" : "Barcelona","Country" : "Spain"},{"Name" : "Island Trading","City" : "Cowes","Country" : "UK"},{"Name" : "Königlich Essen","City" : "Brandenburg","Country" : "Germany"},{"Name" : "Laughing Bacchus Wine Cellars","City" : "Vancouver","Country" : "Canada"},{"Name" : "Magazzini Alimentari Riuniti","City" : "Bergamo","Country" : "Italy"},{"Name" : "North/South","City" : "London","Country" : "UK"},{"Name" : "Paris spécialités","City" : "Paris","Country" : "France"},{"Name" : "Rattlesnake Canyon Grocery","City" : "Albuquerque","Country" : "USA"},{"Name" : "Simons bistro","City" : "København","Country" : "Denmark"},{"Name" : "The Big Cheese","City" : "Portland","Country" : "USA"},{"Name" : "Vaffeljernet","City" : "Århus","Country" : "Denmark"},{"Name" : "Wolski Zajazd","City" : "Warszawa","Country" : "Poland"}]; $scope.left=function(){ return 100- $scope.message.length;}; $scope.clear=function(){$scope.message="";}; $scope.save = function(){$scope.message="";};});
基本效果就是这样,具体你自己调整一下吧.
我的笔记
{{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }} {{two.Name}} {{ two.Country }}
myTodoApp.js:
var app = angular.module("myTodoApp",[]);
myTodoCtrl.js:
app.controller("myTodoCtrl",function($scope){ $scope.message=""; $scope.firstnames=[{"Name" : "Alfreds Futterkiste","City" : "Berlin","Country" : "Germany"},{"Name" : "Berglunds snabbköp","City" : "Luleå","Country" : "Sweden"},{"Name" : "Centro comercial Moctezuma","City" : "México D.F.","Country" : "Mexico"},{"Name" : "Ernst Handel","City" : "Graz","Country" : "Austria"},{"Name" : "FISSA Fabrica Inter. Salchichas S.A.","City" : "Madrid","Country" : "Spain"},{"Name" : "Galería del gastrónomo","City" : "Barcelona","Country" : "Spain"}]; $scope.twonames=[{"Name" : "Alfreds Futterkiste","City" : "Berlin","Country" : "Germany"},{"Name" : "Berglunds snabbköp","City" : "Luleå","Country" : "Sweden"},{"Name" : "Centro comercial Moctezuma","City" : "México D.F.","Country" : "Mexico"},{"Name" : "Ernst Handel","City" : "Graz","Country" : "Austria"},{"Name" : "FISSA Fabrica Inter. Salchichas S.A.","City" : "Madrid","Country" : "Spain"},{"Name" : "Galería del gastrónomo","City" : "Barcelona","Country" : "Spain"},{"Name" : "Island Trading","City" : "Cowes","Country" : "UK"},{"Name" : "Königlich Essen","City" : "Brandenburg","Country" : "Germany"},{"Name" : "Laughing Bacchus Wine Cellars","City" : "Vancouver","Country" : "Canada"},{"Name" : "Magazzini Alimentari Riuniti","City" : "Bergamo","Country" : "Italy"},{"Name" : "North/South","City" : "London","Country" : "UK"},{"Name" : "Paris spécialités","City" : "Paris","Country" : "France"},{"Name" : "Rattlesnake Canyon Grocery","City" : "Albuquerque","Country" : "USA"},{"Name" : "Simons bistro","City" : "København","Country" : "Denmark"},{"Name" : "The Big Cheese","City" : "Portland","Country" : "USA"},{"Name" : "Vaffeljernet","City" : "Århus","Country" : "Denmark"},{"Name" : "Wolski Zajazd","City" : "Warszawa","Country" : "Poland"}]; $scope.left=function(){ return 100- $scope.message.length;}; $scope.clear=function(){$scope.message="";}; $scope.save = function(){$scope.message="";};});
基本效果就是这样,具体你自己调整一下吧.
非常感,我尝试用两个表格显示吧。
内容总结
以上是互联网集市为您收集整理的求教:如何用angularjs实现表格首列固定_html/css_WEB-ITnose全部内容,希望文章能够帮你解决求教:如何用angularjs实现表格首列固定_html/css_WEB-ITnose所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。