简体   繁体   中英

Div not Showing on extra small devices (xs) bootstrap

I have some divs that change if the user access from a desktop, a tablet or a mobile, and i have some issues with the div mobile i am using right now, i used this code to show if the resolution is the smallest one

<div class="col-md-9 contenidox hidden-lg hidden-md hidden-sm">

But it's not showing anything when i resize the browser to a small size (like mobile devices)

Here is my bootply code

http://www.bootply.com/LG64Xhg8GG

问题是其他div继承了css类,关闭了div标签并开始工作

它固有地使用hidden-sm,因此只需设置xs的col,例如col-xs-12

请删除hidden-sm class ,并将其替换为col-sm-12

You can use visible-xs class. below the example is...

<div class="col-md-9 contenidox visible-xs">

now it is visible on mobile only.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM