在移动设备上使用btn-group的中心块

时间:2015-07-06 16:20:31

标签: angularjs twitter-bootstrap twitter-bootstrap-3 angular-ui-bootstrap

我尝试将中心对齐div块,它在网络上运行良好,但在移动设备上却不是那么多:(

这是我的代码:

template <typename T, uint i>
using arg_t = typename function_traits<T>::template arg<i>::type;

任何出路?

2 个答案:

答案 0 :(得分:0)

我使用bootply并且我认为问题来自文本(最好和所有......)所以解决这个问题是使用跨度隐藏它在小屏幕上并且只显示最好的可能吗?

   /proc/[pid]/maps
      A file containing the currently mapped memory regions and their access permissions.

      The format is:

      address           perms offset  dev   inode   pathname
      08048000-08056000 r-xp 00000000 03:0c 64593   /usr/sbin/gpm
      08056000-08058000 rw-p 0000d000 03:0c 64593   /usr/sbin/gpm
      08058000-0805b000 rwxp 00000000 00:00 0
      40000000-40013000 r-xp 00000000 03:0c 4165    /lib/ld-2.2.4.so
      40013000-40015000 rw-p 00012000 03:0c 4165    /lib/ld-2.2.4.so
      4001f000-40135000 r-xp 00000000 03:0c 45494   /lib/libc-2.2.4.so
      40135000-4013e000 rw-p 00115000 03:0c 45494   /lib/libc-2.2.4.so
      4013e000-40142000 rw-p 00000000 00:00 0
      bffff000-c0000000 rwxp 00000000 00:00 0

      where "address" is the address space in the process that it occupies, "perms" is  a  set  of  permis-
      sions:

           r = read
           w = write
           x = execute
           s = shared
           p = private (copy on write)

      "offset"  is the offset into the file/whatever, "dev" is the device (major:minor), and "inode" is the
      inode on that device.  0 indicates that no inode is associated with the memory region,  as  the  case
      would be with BSS (uninitialized data).

      Under Linux 2.0 there is no field giving pathname.

jsfiddle

答案 1 :(得分:0)

您可以将中心区域更改为文本中心以使其正常工作。

<div class="text-center">
    <div class="btn-group">
    <label class="btn btn-success vertical-align" ng-model="checkModel.left" btn-checkbox>1</label>
    <label class="btn btn-success vertical-align" ng-model="checkModel.middle" btn-checkbox>2 and Best and all</label>
    <label class="btn btn-success vertical-align" ng-model="checkModel.left" btn-checkbox>3</label>
    <label class="btn btn-success vertical-align" ng-model="checkModel.middle" btn-checkbox>4</label>
    <label class="btn btn-success vertical-align" ng-model="checkModel.left" btn-checkbox>5</label>
    </div>
</div>

http://jsfiddle.net/bmpzcapt/