div標(biāo)簽是否有層級關(guān)系?
<div?id="root"> <div?v-html="msg"?@click="handleClick"></div> <input?v-model="content"?/> <div?:title="title"?v-html="content"></div> <div>?Firstname:?<input?v-model="firstname"?/>?Lastname:?<input?v-model="lastname"?/></div> <div>yours?fullname:?{{fullname}}</div> <div>Changed?Count:{{count}}</div> </div> 第一層中的root標(biāo)簽是否對于后面的div一樣有效?div層級關(guān)系是怎么樣的?
2020-04-12
root 標(biāo)簽是對整個(gè)div有效的。
<div></div>是一對,其中都是有效的。