<template> <div class="index_background" > </div> </template> <style> .index_background{ background: url('~@/../static/images/login-bg.png') center top no-repeat;} </style>
VUE中给template组件加背景
<template><div class="index_background" ></div></template><style>.index_background{ background: url('~@/../static/images/login-bg.png') center top no-repe...
·
转载于:https://www.cnblogs.com/colorful-paopao1/p/9796105.html
更多推荐
已为社区贡献893条内容
所有评论(0)