我想在md-autocomplete上使用模糊事件,但ng-blur和md-blur都无效。
body {
font-weight: normal;
line-height: 1.625;
margin:0 0;
width: 100%;
height: 100%;
}
html{
height: 100%;
width: 100%;
font-size:100%;
margin:0 0;
padding:0px;
}
.nav {
font-family:'Merriweather', serif;
font-size: 11px;
font-weight: bold;
padding:0;
line-height: 18px;
overflow: hidden;
margin: 0;
text-align:center;
}
.nav h1 {
color:#4A96AD;
float:left;
letter-spacing: 1px;
}
.nav p {
display: inline-block;
color:#4A96AD;
font-size: 15px;
margin-left: 14px;
float:right;
}
.right img {
display:inline-block;
float:right;
clear:right;
margin-top:5px;
margin-left: 17px;
margin-right: 16px;
padding:2px
}
.right{
margin-right: 10px;
}
.logo{
display:inline-block;
float:left;
margin-left: 10px;
}
.logo img{
margin-left: 10px;
}
.info {
font-family: 'Merriweather', serif;
margin-left: 150px;
margin-right: 150px;
background-color: white;
margin-bottom:0;
}
.info h2, h3 {
text-align:center;
padding-bottom: 5px;
margin-top:30px;
padding-top: 30px;
}
.imgmain {
float:right;
margin-left: 10px;
margin-right: 1px;
}
.info p {
margin-bottom:50px;
}
.navbar a {
text-decoration:none;
color: #F5F3EE;
font-weight:600;
font-size: 20px
}
.navbar li {
margin: auto;
display:inline;
margin-left: 15px;
}
.navbar ul {
margin-top:0px;
text-align:center;
}
.navbar img {
position: relative;
top: 13px;
width: 4%;
margin: auto;
height:100%;
margin-right: 3px;
background-position: center;
}
.navbar {
width: 100%;
display:inline-block;
background-color: rgb(58, 145, 232);
border-radius: 35px;
}
.main {
background-color:rgba(242, 242, 242, 0.42);
}
a:hover {
color: rgb(255, 180, 35);
}
.footer {
font-family: 'Oswald', sans-serif;
margin-left: 100px;
margin-right: 100px;
background-color: white;
margin-top:0;
border-top: 2px solid;
text-align:center;
margin-top: 80px;
}
.footer p {
margin-bottom: 20px;
margin-top:20px;
}
.container {
margin-left:10px;
margin-right:10px;
}
.imgdisplay {
margin-top: 30px;
background-image:url(rsz_3d0bcd96798d63581f56fa86e77dd8b0.jpg);
height: 500px;
width: 1024px;
background-position: center;
margin: auto;
}
$scope.unFocus = function () {
alert('Hello!');
}
答案 0 :(得分:3)
ngBlur 和 ngFocus 将从 1.1.1 版本的Angular Material
开始工作