小编Val*_* Do的帖子

如何仅更改字体的不透明度

大家好我只需要改变 fonts不透明度 css就可以了吗?ps我只需要改变fonts

css css3

4
推荐指数
1
解决办法
69
查看次数

Jquery if $(window) 向下滚动功能

你好,我需要什么时候$(window)100%警报向下滚动,我该怎么做?

jquery

4
推荐指数
1
解决办法
3万
查看次数

如何仅切换类当前元素angular2

这是我的代码示例.在我的情况下,切换类适用于每个li元素

   <ul class="nav nav-pills pull-right">
        <li *ngFor="let x of nav" class="presentation" (click)="active = !active" [ngClass]="toggleClass()">
            <a href="#">{{x.menu}} </a>
        </li>
    </ul>
Run Code Online (Sandbox Code Playgroud)

JS

 export class AppComponent {
  active = false;
  nav = NAVIGATION;

  //Toggle Class

  toggleClass(){
    if(this.active){
      return 'active';
    } else {
      return '';
    }
  }
Run Code Online (Sandbox Code Playgroud)

javascript angular

4
推荐指数
1
解决办法
7297
查看次数

如何使用*ngIf切换类angular2

您好我需要使用angular2 *ngIf语句来切换类

<i *ngIf="visible" [(ngClass)]="{{arrow}}"></i> <<这行代码不能正常工作


这是我的ts代码

private visible = true;
private i = 0;
private arrow = 'ic-v';
private showList(){
    if(this.i == 0){
        this.i = 1;
        this.visible = false;
        this.arrow = 'ic-v-up';
    }
    else
    {
        this.i = 0;
        this.visible = true;
        this.arrow = 'ic-v';
    }
}
Run Code Online (Sandbox Code Playgroud)

typescript angular

4
推荐指数
1
解决办法
2785
查看次数

CSS 背景颜色过渡效果不佳

您好,我有这段代码:将鼠标悬停在a标签上时,过渡有效,但文本消失。我该如何解决这个问题?

<header>
    <ul class="menu">
        <li><a href="#">main</a></li>
        <li><a href="#">about us</a></li>
        <li><a href="#">brands</a></li>
        <li><a href="#">gallery</a></li>
        <li><a href="#">contact</a></li>
    </ul>
</header>

<style type="text/css">

header ul li a {
    text-decoration: none;
    color: #333946;
    font-size: 20px;
    padding: 20px;
    -webkit-transition: background-color 0.5s; /* For Safari 3.1 to 6.0 */
    transition: background-color 0.5s;
}

a:hover {
    background-color: #333946;
    opacity: 0.5;
    border-radius: 3px;
}

</style>
Run Code Online (Sandbox Code Playgroud)

css

3
推荐指数
1
解决办法
708
查看次数

从数据库中选择名称emali = $ emali?

我需要Name从数据库中选择Email = $email;

if ($result) {

        $Name = $this->db->select('Name');
        $this->db->from('users');
        $this->db->where('Email',$Email);

        $sess_array = array(
            'Name' => $Name 
        );
        $this->session->set_userdata('logged_in',$sess_array);
        print_r($sess_array);
    }
Run Code Online (Sandbox Code Playgroud)

php mysql codeigniter

2
推荐指数
1
解决办法
124
查看次数

窗口大小调整功能只对特定窗口大小一次

嗨所有我需要的是,如果窗口少于768px警报一些,如果窗口超过768px警报一些,我有这个脚本,else if(){}当窗口大小超过768px ps 时不工作我需要这个heppend总是当窗口小于768px或超过768px

var i = 0;
$(window).resize(function(){
    if(width < 768 && i == 0){
        alert('less than 768px');
        i++;
        alert(i);
    }else if(width > 768){
        alert('more than 768px');
        i==0;
    }
});
Run Code Online (Sandbox Code Playgroud)

jquery

-1
推荐指数
1
解决办法
231
查看次数

标签 统计

angular ×2

css ×2

jquery ×2

codeigniter ×1

css3 ×1

javascript ×1

mysql ×1

php ×1

typescript ×1