基于html5實(shí)現(xiàn)的圖片墻效果
來源:易賢網(wǎng) 閱讀:698 次 日期:2015-01-29 16:17:49
溫馨提示:易賢網(wǎng)小編為您整理了“基于html5實(shí)現(xiàn)的圖片墻效果”,方便廣大網(wǎng)友查閱!

這里有一組數(shù)據(jù)需要用圖片墻的效果來顯示, 這些數(shù)據(jù)是動(dòng)態(tài)的, 用angularjs來維護(hù), 可增加和刪除的.

界面上每行最多4個(gè)單元格.

以下是代碼:

代碼如下:

<!DOCTYPE html>

<html ng-app="app">

<head lang="en">

<meta charset="UTF-8">

<link rel="stylesheet" href="css/bootstrap.min.css">

<script src="js/angular.min.js"></script>

<title>表格界面</title>

<style type="text/css">

ul{list-style:none;}

</style>

</head>

<body ng-controller="myCtrl">

<div class="row">

<div class="col-sm-12">

<h3 class="label-info">{{title}}</h3>

<input type="button" value="Add new list" class="btn-primary">

</div>

</div></p> <p><div class="row">

<ul class="">

<li ng-repeat="i in tasklist.all">

<div class="col-xs-6 col-sm-4 col-md-3">

<div class="thumbnail"></p> <p> <input type="text" ng-model="i.title" style="width: 100%">

<ul>

<li ng-repeat="j in i.list">

<input type="checkbox" ng-model="j.done">

<input type="text" ng-model="j.item">

</li>

</ul></p> <p>

</div>

</div>

</li></p> <p> </ul></p> <p></div></p> <p>

<script>

var app=angular.module("app",[], function () {

console.log('started');

});</p> <p> var myTaskList={

"all": [

{ title:"這是第一個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)1"},

{ "done":"false", "item":"明細(xì)2"},

{ "done":"false", "item":"明細(xì)3"},

{ "done":"false", "item":"明細(xì)43"}

]},</p> <p> { title:"這是第2個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)1"},

{ "done":"false", "item":"明細(xì)2"},

{ "done":"false", "item":"明細(xì)33"},

{ "done":"false", "item":"明細(xì)4"}

]},</p> <p> { title:"這是第3個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)1"},

{ "done":"false", "item":"明細(xì)25"},

{ "done":"false", "item":"明細(xì)3"},

{ "done":"false", "item":"明細(xì)4"}

]},

{ title:"這是第一個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)1"},

{ "done":"false", "item":"明細(xì)2"},

{ "done":"false", "item":"明細(xì)3"},

{ "done":"false", "item":"明細(xì)43"}

]},</p> <p> { title:"這是第2個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)1"},

{ "done":"false", "item":"明細(xì)2"},

{ "done":"false", "item":"明細(xì)33"},

{ "done":"false", "item":"明細(xì)4"}

]},</p> <p> { title:"這是第3個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)1"},

{ "done":"false", "item":"明細(xì)25"},

{ "done":"false", "item":"明細(xì)3"},

{ "done":"false", "item":"明細(xì)4"}

]},

{ title:"這是第4個(gè)列表",

list:[{ "done":"false", "item":"明細(xì)13"},

{ "done":"false", "item":"明細(xì)2"},

{ "done":"false", "item":"明細(xì)33"},

{ "done":"false", "item":"明細(xì)4"}

]}</p> <p></p> <p> ]

};

app.controller("myCtrl",function($scope){

$scope.title="這里用來演示一個(gè)表格布局, 例如照片墻";

$scope.tasklist=myTaskList;</p> <p>

});

</script>

</body>

</html>

更多信息請查看IT技術(shù)專欄

更多信息請查看網(wǎng)頁制作
易賢網(wǎng)手機(jī)網(wǎng)站地址:基于html5實(shí)現(xiàn)的圖片墻效果
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

2025國考·省考課程試聽報(bào)名

  • 報(bào)班類型
  • 姓名
  • 手機(jī)號
  • 驗(yàn)證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機(jī)站點(diǎn) | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
云南網(wǎng)警備案專用圖標(biāo)
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報(bào)警專用圖標(biāo)