响应式移动网站

时间:2016-08-05 10:54:14

标签: responsive

我的网站enter link description here

有问题

我不知道为什么要使用手机响应式菜单。 在浏览器中,ewerything工作正常。 可能是什么问题?

2 个答案:

答案 0 :(得分:3)

可以试试这个

  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="X-UA-Compatible"  content="IE=edge,chrome=1"><meta name="HandheldFriendly" content="true">

答案 1 :(得分:1)

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) ->
    UITableViewCell{

        if(tableView==self.notifTable)
        {
            if (p_id[indexPath.row].isEmpty) {

                //cell for followed you
                let cell = tableView.dequeueReusableCellWithIdentifier("cell1", forIndexPath: indexPath) as! notification_cell
                cell.username.text = username[indexPath.row]
                cell.followNotif.text =
                    notif[indexPath.row]
                return cell
            }
            else {

                //cell for commented/liked
                let cell = tableView.dequeueReusableCellWithIdentifier("cell3", forIndexPath: indexPath) as! notification2_cell
                cell.username.text = username[indexPath.row]
                cell.c_l_notif.text = notif[indexPath.row]
                return cell
            }
        }
        else
        {
            let cell = tableView.dequeueReusableCellWithIdentifier("cell2", forIndexPath: indexPath)
            cell.textLabel?.text = "hola"

            return cell

        }            
}

这是响应问题的解决方案。