简体   繁体   English

如何为响应式视图打破按钮或锚标记

[英]How to break a button or anchor tag for responsive view

<td>
@if($product->status)
<div class="form-group has-error" style="word-wrap:break-word;">
<label class="control-label">No</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-success" href="{{ route('myproducts.toggleStatus',$product->id) }}"><em class="fa fa-thumbs-o-up"></em> Make it Available</a>
</div>

@else
<div class="form-group has-success" style="word-wrap:break-word;">
<label class="control-label">Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-danger" style="word-wrap:break-word;" href="{{ route('myproducts.toggleStatus',$product->id) }}"><em class="fa fa-thumbs-o-down"></em> Make it Unavailable</a>
</div>
@endif
</td>

This is the code that I have used and I am attaching screenshots of mobile the last part that goes out of view这是我使用过的代码,我正在附上移动设备屏幕截图,这是看不见的最后一部分

You should add responsive class to table element so that scroll will be displayed on smaller devices.您应该向表格元素添加响应类,以便在较小的设备上显示滚动。

Check bootstrap responsive tables.检查引导响应表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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