-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e30e48c
commit e9d95dd
Showing
2 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,27 +5,38 @@ | |
<title>Learning Vue</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<style> | ||
.box { | ||
padding: 100px 0; | ||
width: 400px; | ||
text-align: center; | ||
background: #ddd; | ||
margin: 20px; | ||
display: inline-block; | ||
body{ | ||
background: #eee; | ||
max-width: 960px; | ||
margin: 20px auto; | ||
} | ||
p, h3, ul{ | ||
margin: 0; | ||
padding: 0; | ||
} | ||
li{ | ||
list-style-type: none; | ||
background: #fff; | ||
margin: 20px auto; | ||
padding: 10px 20px; | ||
border-radius: 10px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
li.fav{ | ||
background: #ff9ed2; | ||
color: white; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Hello, Vue :)</h1> | ||
|
||
<div id="app"> | ||
<!-- attribute binding --> | ||
<!-- <a v-bind:href="url">Best website ever!</a> --> | ||
<a :href="url">Best website ever!</a> | ||
|
||
<div v-if="showBooks"> | ||
<ul> | ||
<li v-for="book in books"> | ||
<li v-for="book in books" :class="{ fav: book.isFav }"> | ||
<img :src="book.img" :alt="book.title"> | ||
<h3>{{ book.title }}</h3> | ||
<p>{{ book.author }}</p> | ||
|
e9d95dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello ,sir you using you event on Vs code is not working it only diplay the content but no action ,kindly i need you help