vue 点击下拉框
data: { hide:false,
zhi:"全部" },
<div class="item">
<div class="c2c-all" @click="hide ? hide=false : hide=true">
<span class="c2c-alla" style="position: relative">{{zhi}}</span><span><div class="coinbig-c2c-sanj fsj"></div></span>
</div>
<div class="c2c-son c2sleft" v-show="hide" >
<div @click="hide=false" class="c2c-as"v-for="item in 6,">{{item++}}</div> //循环6 个 data里可以造点数据 zhi=item 为点击那个值赋值给全部
</div>
</div>
/*下拉开始*/ .assetrecords .c2c-all {
width: 100%;
/*height: 32px;*/
display: block;
position: relative;
} .assetrecords .item {
width: 160px;
height: 32px;
background: #202e58;
line-height: 32px;
/*border-left: 1px solid #2a404f;*/
cursor: pointer;
border: 1px solid #495d9a;
border-radius: 3px;
} .assetrecords .c2c-alla {
margin-left: 10px;
font-size: 14px;
color: #d6ddff;
} .assetrecords .c2c-as {
padding-left: 10px;
font-size: 14px;
color: #FFFFFF
} .assetrecords .c2c-as:hover {
background: #495689;
} .assetrecords .c2c-son {
display: none;
background-color: #15284c;
width: 160px;
position: absolute;
top: 32px;
z-index:;
} .assetrecords .item {
position: relative;
} .assetrecords .coinbig-c2c-sanj {
width:;
height:;
border-width: 7px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
background: #202e58;
position: absolute;
right: 9px;
top: 13px;
} .assetrecords .coinbig-c2c-sanj-shang {
width:;
height:;
border-width: 7px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
background: #12212f;
position: absolute;
right: 9px;
top: 16px;
} .assetrecords .c2c-son-input {
width: 150px;
height: 32px;
line-height: 30px;
border: 1px solid #495d9a;
margin: 5px auto 0;
} .assetrecords .c2c-son-input-les {
float: right;
width: 12px;
height: 12px;
margin-top: 11px;
margin-right: 5px;
} .assetrecords .c2c-son-inputs {
width: 110px;
height: 100%;
padding-left: 10px;
background: #15284c;
border: none;
color: #FFFFFF;
font-size: 14px;
}
/*下拉结束*/
vue 点击下拉框的更多相关文章
- 微信内置浏览器中,点击下拉框出现页面乱跳转现象(iphone)
微信内置浏览器中,点击下拉框出现页面乱跳转现象(iphone) 前言: 这是小菜博客的第三篇文章.一直认为自己可以表达的东西太过简单,难以上台面,总是吝啬地不肯写.就算是写,也不知道从何开始.在同事的 ...
- [Selenium]点击下拉框之后,从下拉列表选择元素进行点击很容易失败
点击下拉框之后,下拉列表会显示出来,但是有时候下拉列表会很快就消失掉,导致后面选择元素的时候会失败. 像这种情况,需要将鼠标移动到下拉列表上,使下拉列表维持显示,然后才选择元素进行点击. 将鼠标移动到 ...
- Vue实现树形下拉框
Vue自身并没有实现树形下拉框的组件,找了很多资料,最后在Github上找了个插件vue-treeselect,功能还是比较全的,模糊搜索.多选.延迟加载.异步搜索.排序,自定义.Vuex支持等等.这 ...
- vue js select下拉框
<template> <ul id="select"> <li> <div class="select-head"&g ...
- vue实现百度下拉框
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" ...
- vue获取下拉框值
vue获取下拉框的值,用vue-modle,只有点击下拉框的值才会赋值到下拉框中,初始时下拉框没有数据,而改用$event就不会出现这样的问题,下面看代码以及图解: v-model解决方式: < ...
- vue自定义下拉框组件
创建下拉框组件 Select.vue <template> <div class="selects"> <div :class="{sele ...
- 点击select下拉框获取option的属性值
select下拉框作为前端开发者应该是经常使用的,最近在项目中遇到这样的情况,点击下拉框选项,需要获取所点击的option的属性值,当时想很简单啊,给option加一个点击事件不就行了,然后就加了一下 ...
- 点击select下拉框,触发事件
<div class="controls moneycheck floatleft"> <select class="span12 chosen_cat ...
随机推荐
- 1.函数的结构,调用,传参,形参,实参,args,kwargs,名称空间,高阶函数
1.函数的初识 初始函数 获取任意一个字符串的元素的个数 s1='dsjdkjkfefenga' count=0 for i in s1: count+=1 print(count) 获取列表的元素的 ...
- UVALive - 3695 Distant Galaxy
InputThere are multiple test cases in the input file. Each test case starts with one integer N, (1 ≤ ...
- p标签间距问题
用<p></p>标签写文本时,控制行与行之间的高度最好用line-height,不要用margin或padding: 因为P标签本身就带有一定的上下间距,且自带的间距在模拟 ...
- Ubuntu16.04.2 LTS 64bit系统装机记录
系统环境:Win10 + Ubuntu16.04.2 LTS 64bit(双系统)安装教程:Win10和Ubuntu16.04双系统安装详解(简书)以下为系统安装后所要进行的操作. 一.安装显卡驱动 ...
- Linux —— GDB调试程序
调试实现 在可执行文件中加入源代码的信息,比如可执行文件中第几条机器指令对应源代码的第几行,但并不是把整个源文件嵌入到可执行文件中,所以在调试时必须保证gdb能找到源文件. 生成可执行文件命令: g+ ...
- CF620E New Year Tree 状压+线段树(+dfs序?)
借用学长的活:60种颜色是突破口(我咋不知道QAQ) 好像这几道都是线段树+dfs序??于是你可以把60种颜色压进一个long long 里,然后向上合并的时候与一下(太妙了~) 所以记得开long ...
- II play with GG(思维规律)
时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 IG won the S champion ...
- 51nod1244 欧拉函数之和 杜教筛
和上一题差不多,一个是μ*I=e,一个是φ*I=Id 稍改就得到了这题的代码 (我会告诉你我一开始逆元算错了吗) #include <bits/stdc++.h> #define MAX ...
- Http请求数据解释
请求的数据里面包含三个部分内容 : 请求行 . 请求头 .请求体 请求行 POST /examples/servlets/servlet/RequestParamExample HTTP/1.1 PO ...
- Net Core构建Angular4应用程序
在Visual Studio 2017中使用Asp.Net Core构建Angular4应用程序 前言 Visual Studio 2017已经发布了很久了.做为集成了Asp.Net Core 1 ...