在移动设备或特定分辨率下添加
标签(add
tags at mobile or under specific resolutions)
我想为移动视图分辨率添加br标签,如320px - 480px。 我试过保证金顶部,底部但不起作用。 所以请帮助我。
我想在这两个锚标签之间添加br标签。 下面两个像这样的标签。
<a class="ww" href="counseller.html">Career Counsellor</a> <a class="xx" href="mentors.html"> Career Mentor</a>
I want to add br tag for mobile view resolution like 320px - 480px. I have tried margin top , bottom but not working. So please help me.
I want add br tag in between these two anchor tag. following two a tag like this.
<a class="ww" href="counseller.html">Career Counsellor</a> <a class="xx" href="mentors.html"> Career Mentor</a>
原文:https://stackoverflow.com/questions/32901604
更新时间:2024-04-23 20:04
最满意答案
您是否考虑过将数据存储在数组中,并根据需要从
rand
提取?friends = ["Joe", "Sam", "Tom"] ary =[(1..5), (6..10), (11..20)] year = (1..3) friends.each do |friend| year.each do |yr| p "#{friend} at the end of year #{yr} wrote #{rand(ary[yr - 1])} essays" end end
这会产生,例如:
"Joe at the end of year 1 wrote 5 essays" "Joe at the end of year 2 wrote 7 essays" "Joe at the end of year 3 wrote 16 essays" "Sam at the end of year 1 wrote 3 essays" "Sam at the end of year 2 wrote 7 essays" "Sam at the end of year 3 wrote 18 essays" "Tom at the end of year 1 wrote 2 essays" "Tom at the end of year 2 wrote 8 essays" "Tom at the end of year 3 wrote 15 essays"
Have you considered storing the ranges in an array, and drawing from
rand
on demand?friends = ["Joe", "Sam", "Tom"] ary =[(1..5), (6..10), (11..20)] year = (1..3) friends.each do |friend| year.each do |yr| p "#{friend} at the end of year #{yr} wrote #{rand(ary[yr - 1])} essays" end end
This produces, for example:
"Joe at the end of year 1 wrote 5 essays" "Joe at the end of year 2 wrote 7 essays" "Joe at the end of year 3 wrote 16 essays" "Sam at the end of year 1 wrote 3 essays" "Sam at the end of year 2 wrote 7 essays" "Sam at the end of year 3 wrote 18 essays" "Tom at the end of year 1 wrote 2 essays" "Tom at the end of year 2 wrote 8 essays" "Tom at the end of year 3 wrote 15 essays"
相关问答
更多-
追加在For循环中不起作用(Append does not work in For Loop)[2022-05-22]
关键是,非常简单,您的循环尚未执行。 您可以添加要检查的输出。 first_sale_all_menu = [] for one_product_category in Product_Category.objects.all().filter(slug__in=('3-pack-items-c', '3-pack-items-b', '3-pack-items', '3-pack-items-d')): print(1) link_to_mamapedia_cat ... -
那样的? L2: PUSH CX ;PUSH CX IN A STACK ; insert this MOV CX, 10 ; width of your tree = 10 SUB CX, BX ; subtract length of "s" string SHR CX, 1 ; divide CX by 2 => number of spaces at the beginning JCXZ endL3 ...
-
虽然循环不起作用(While loop doesn't work)[2023-12-06]
尝试: while ( $row = mysql_fetch_array ( $r ) ) 您希望将$row设置$row等于mysql_fetch_array的结果,而不是将其与结果进行比较 Try: while ( $row = mysql_fetch_array ( $r ) ) You want to set $row equal to the result of mysql_fetch_array, not compare it against the result -
if语句在for循环内部循环时不起作用(if statement does not work inside while loop which is inside for loop)[2021-08-07]
使用http://php.net/manual/en/language.variables.variable.php而不是一些丑陋的eval() 。 (例如${"district$count"} ) $count = 0; do { $count++; $district_name = $districts_filter_row['district_name']; $district_value = $districts_filter_row['district_value']; ? ... -
使用ifelse() ,而不是if ... else 。 Use ifelse(), not if ... else.
-
您提交的代码的主要问题是,如果您的随机选取的数字不是50,则将0赋值给它。 所以你的输出将是一个0流。 你可以稍微修改你的代码,并删除你的else块:
为什么我的循环不起作用?(Why wont my loop work?)[2022-06-17]
您可以使用基于区间的解决方案,而不是像使用while循环一样 console.log('START LOOP MY FUNCTION'); //start the function loop(function () { //this callback will be called once `a` becomes 1 console.log('EXIT LOOP MY FUNCTION'); }) function loop(callback) { var a = 1, ...您没有在entry对象中定位数组,您需要遍历childNodes属性以获取所需的数据。 见下面的例子。 var dataModels = []; dataModels[0] = { childNodes: [] }; dataModels[0].childNodes[0] = { appId: "foo" }; dataModels.forEach(function(entry){ entry.childNodes.forEach(function(childrenEntry ...在每次迭代之前完全评估条件。 (想一想:编译器如何知道每次评估哪些部分,以及哪些部分不评估?) 是否是不好的做法取决于具体情况。 如果终止条件可能在循环期间发生变化,则有意义。 如果你想循环一个随机的次数,那么你应该预先评估终止价值,否则你会得到一个比你想象的不同的随机分布。 如果在每次迭代时评估rand() ,则满足终止条件的几率将根据i的值改变每次迭代,并且与均匀分布相比,您会发现i一些终止值过度表示。 话虽如此,在你的情况下,即使你提前评估,分布也不会是统一的,因为(1) rand()不能保证产生统一 ...为什么在嵌套在另一个循环中的每个循环内部rand不起作用(Why rand inside an each loop nested in another each loop does not work)[2021-11-30]
您是否考虑过将数据存储在数组中,并根据需要从rand提取? friends = ["Joe", "Sam", "Tom"] ary =[(1..5), (6..10), (11..20)] year = (1..3) friends.each do |friend| year.each do |yr| p "#{friend} at the end of year #{yr} wrote #{rand(ary[yr - 1])} essays" end end 这会产生,例如: "Joe ...相关文章
更多- jQuery Mobile 的特性
- jquery mobile 官网下载
- AMF: ASP.NET Mobile Framework
- 使用jQuery Mobile实现通讯录
- 服务器端通过http请求区分是mobile还是pc
- 【原创】小白学jquery Mobile《构建跨平台APP:jQuery Mobile移动应用实战》连载五(给按钮加图标)
- 微信开发订阅号(ASP.NET MVC4+jquery mobile+AppHarbor发布)
- 《北风网资深讲师李炎恢jQuery视频教程》含UI、Mobile | 更新至15集[压缩包]
- 关于android自动适应机型分辨率和旋转绘制图片帧的问题.
- 移动设备类
最新问答
更多- CSS修复容器和溢出元素(CSS Fix container and overflow elements)
- SQL多个连接在与where子句相同的表上(SQL Multiple Joins on same table with where clause)
- nginx 80端口反向代理多个域名,怎样隐藏端口的
- xcode提醒样式,swift 3(xcode alert style, swift 3)
- 在Chrome控制台中调试JavaScript(debugging javascript in Chrome console)
- Javascript - 试图围绕自定义事件(Javascript - Trying to wrap my head around custom events)
- 边栏链接不可点击(Sidebar links aren't clickable)
- 使用recpatcha gem时如何显示其他表单错误?(How do I display other form errors when using the recpatcha gem?)
- boost.python避免两次注册内部类,但仍然在python中公开(boost.python Avoid registering inner class twice but still expose in python)
- Android 现在软件很少吗?以后会多起来吗
- 如何在ActiveAdmin 0.5.0中为资源全局指定预先加载?(How to specify eager loading globally for a resource in ActiveAdmin 0.5.0?)
- matlab代码为黄金比例持续分数(matlab code for golden ratio continued fraction)
- Android浏览器触摸事件位置(Android browser touch event location)
- 将cURL输出分配给Bash中的变量(Assign output to variable in Bash)
- 我如何在MVC视图上没有时间获取当前日期(how i can get current date without time on MVC view)
- sql连接函数(sql join of function)
- 为什么在Xamarin Media插件中使用ImageSource.FromStream而不是FromFile?(Why use ImageSource.FromStream instead of FromFile in Xamarin Media plugin?)
- 这段代码是否真的可以防止SQL注入?(Will this code actually work against SQL-injection? [duplicate])
- 信阳方远计算机学校大专证被国家认可么
- React / Rails AJAX POST请求返回404(React/Rails AJAX POST request returns 404)
- Android与php服务器交互(Android interact with php server)
- 自动刷新QTableWidget可能吗?(Refresh QTableWidget automatically possible?)
- JVM / Compiler优化对象的未使用属性(optimization of unused properties of object by JVM / Compiler)
- 插入表格时,乌克兰字符会更改为问号(Ukrainian character change to question mark when insert to table)
- 在头文件中包含异常类(Including an exception class in a header file)
- 完成c#中的执行后关闭sqlcmd(Close sqlcmd after finishing executing in c#)
- 使用软导航栏正确检测屏幕尺寸(Detecting screensize correctly with soft navigation bar)
- Typescript:从输入更新值(Typescript : update value from input)
- 如何在执行某些行后仅在断点处停止?(How to only stop at a breakpoint after some line was executed?)
- 以未定义的元素在JSON中循环(loop in JSON with undefined elements)