使用Vue.js 2.0 模仿百度搜索框效果,供大家参考,具体内容如下
Vue模拟百度搜索 body, html{ padding: 0; margin: 0; } #box{ margin-top: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .input{ width: 500px; height: 30px; text-indent: 4px; } .baidu input{ height: 30px; cursor: pointer; color: #fff; letter-spacing: 1px; background: #3385ff; border: 1px solid #2d78f4; } ul{ padding: 0; margin-top: 6px; } li{ list-style: none; margin: 4px; } li:hover{ background: #ccc; } .bgcolor { background: #ccc; }
- {{item}}
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



