アドバイスを求める: angularjs を使用して table_html/css_WEB-ITnose の最初の列を修正する方法
質問のとおり、これを解決するにはどうすればよいですか?ご意見をお聞かせください
ディスカッション (解決策) への返信
正直に言うと、これはできます、
最初の列は表で、残りは表です。列はテーブルなのでそれだけです
<!DOCTYPE html><html><head> <meta charset="utf-8"/> <title></title> <style>table, th , td { border: 1px solid grey; border-collapse: collapse; padding: 5px;}table tr:nth-child(odd) { background-color: #f1f1f1;}table tr:nth-child(even) { background-color: #ffffff;}</style></head><body> 我的笔记 <div ng-app="myTodoApp" ng-controller="myTodoCtrl"> <table> <tr ng-repeat="two in twonames"> <td style="position: fixed;background-color: #ccc; height: 47px;">{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> </tr> </table> </div></body> <script src="angular.min.js" type="text/javascript"></script> <script src="myTodoApp.js"></script> <script src="myTodoCtrl.js"></script></html>
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="";};});
基本的な効果はこんな感じで、自分で調整できます
<!DOCTYPE html><html><head> <meta charset="utf-8"/> <title></title> <style>table, th , td { border: 1px solid grey; border-collapse: collapse; padding: 5px;}table tr:nth-child(odd) { background-color: #f1f1f1;}table tr:nth-child(even) { background-color: #ffffff;}</style></head><body> 我的笔记 <div ng-app="myTodoApp" ng-controller="myTodoCtrl"> <table> <tr ng-repeat="two in twonames"> <td style="position: fixed;background-color: #ccc; height: 47px;">{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> <td>{{two.Name}}</td> <td>{{ two.Country }}</td> </tr> </table> </div></body> <script src="angular.min.js" type="text/javascript"></script> <script src="myTodoApp.js"></script> <script src="myTodoCtrl.js"></script></html>
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="";};});
基本的な効果は次のとおりです。自分で調整できます
非常に興味深いので、2 つのテーブルを使用して表示してみます。

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

メモ帳++7.3.1
使いやすく無料のコードエディター

SublimeText3 中国語版
中国語版、とても使いやすい

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境

ドリームウィーバー CS6
ビジュアル Web 開発ツール

SublimeText3 Mac版
神レベルのコード編集ソフト(SublimeText3)

ホットトピック









この記事では、HTML&lt; Progress&gt;について説明します。要素、その目的、スタイリング、および&lt; meter&gt;との違い要素。主な焦点は、&lt; Progress&gt;を使用することです。タスクの完了と&lt; Meter&gt; statiの場合

この記事では、HTML&lt; Datalist&GT;について説明します。オートコンプリートの提案を提供し、ユーザーエクスペリエンスの改善、エラーの削減によりフォームを強化する要素。

記事では、HTML5クロスブラウザーの互換性を確保するためのベストプラクティスについて説明し、機能検出、プログレッシブエンハンスメント、およびテスト方法に焦点を当てています。

この記事では、html&lt; meter&gt;について説明します。要素は、範囲内でスカラーまたは分数値を表示するために使用され、Web開発におけるその一般的なアプリケーション。それは差別化&lt; Meter&gt; &lt; Progress&gt;およびex

この記事では、ブラウザのユーザー入力を直接検証するために、必要、パターン、MIN、MAX、および長さの制限などのHTML5フォーム検証属性を使用して説明します。

この記事では、html5&lt; time&gt;について説明します。セマンティックデート/時刻表現の要素。 人間の読み取り可能なテキストとともに、マシンの読みやすさ(ISO 8601形式)のDateTime属性の重要性を強調し、Accessibilitを増やします

この記事では、モバイルデバイスのレスポンシブWebデザインに不可欠なViewportメタタグについて説明します。適切な使用により、最適なコンテンツのスケーリングとユーザーの相互作用が保証され、誤用が設計とアクセシビリティの問題につながる可能性があることを説明しています。

この記事では、&lt; iframe&gt;外部コンテンツをWebページ、その一般的な用途、セキュリティリスク、およびオブジェクトタグやAPIなどの代替案に埋め込む際のタグの目的。
