margin-left: 20px; line-height: 70px; text-align: center; border-radius: 10px; border: 1px rgb(212, 211, 211) solid; font-size: 20px; } .box_select { float: left; height: 80px; width: 80px; background-color: rgb(255, 255, 255); margin-left: 20px; line-height: 70px; tex...
padding: 10px; float: left; margin:5px; line-height: 36x; } .menuActive{color:#FF0000 !important;}</style>
今天在项目中遇到要用:style动态设置margin-top值,直接写发现报错。后来改成驼峰就成功了,记录一下 错误示范: <divclass="testLeft ulData":style="{margin-top:'61px'}"></div> 正确示范 <divclass="testLeft ulData":style="{marginTop:'61px'}"></div>...
<div class="skill-name pull-left"><strong>{{item.name}}</strong></div> <div class="skill-evaluate pull-right">{{item.name}}</div> </div> <div class="clearfix"></div> <div class="progress" style="height:10px;margin-top:15px;"> <div class="progress-bar progress-bar-success"...
<div :style="picShow"> <div style="width: 100px;float: left;margin-right: 20px;" v-for="(item,index) in picItem"> <img :src="item" alt="" style="width: 100px;height:100px;border-radius: 5px;" > </div> </div> data: function () { return { picItem: ["./a1.jpg",...
在查找解决办法时,也发现了另⼀种引⽤⽅式,通过对象的⽅式 :style="{'color':txtcolor,'float':'left','margin-top':'-18px','margin-left':'300px'}" 使⽤v-bind动态绑定style,将style整体通过引号与⼤括号{}引⽤,每⼀个属性值通过引号引⽤,变量不需要加引号,不同 vue-style行内...
今天在项目中遇到要用:style动态设置margin-top值,直接写发现报错。后来改成驼峰就成功了,记录一下 错误示范: <divclass="testLeft ulData":style="{margin-top:'61px'}"></div> 正确示范 <divclass="testLeft ulData":style="{marginTop:'61px'}"></div>...