首页 \ 问答 \ 为什么使用.h1而不是实际的h1?(Why use .h1 instead of actual h1?)

为什么使用.h1而不是实际的h1?(Why use .h1 instead of actual h1?)

在Bootstrap CSS项目中 ,为标题标签(H1,H2,H3,H4,H5,H6)提供了样式,但也有一系列基于标题的类名(.h1,.h2,.h3 ,.h4,.h5,.h6)。 在没有正确使用H1标签的情况下使用H1的类名称获得的好处是什么? 我会认为你总是想确保你的HTML镜像是你的视觉重要性。

解释使用.h1而不是使用h1标签的好理由的任何想法将不胜感激。


Within the Bootstrap CSS project, styles are provided for your heading tags (H1, H2, H3, H4, H5, H6), but there's also a series of class names based on the headings as well (.h1, .h2, .h3, .h4, .h5, .h6). What is the benefit gained from using the class name of a H1 without properly using the H1 tag? I would think that you always want to make sure your HTML mirrors your visual importance.

Any thoughts explaining a good reason for using .h1 instead of using a h1 tag would be appreciated.


原文:https://stackoverflow.com/questions/19099401
更新时间:2022-03-25 08:03

最满意答案

我认为你正在寻找的是strerror()


I think what you're looking for is strerror().

相关问答

更多
  • 我认为你正在寻找的是strerror() 。 I think what you're looking for is strerror().
  • POSIX没有定义free设置errno (虽然POSIX目前不禁止它,所以实现可能会这样做 - 参考@ ArjunShankar的答案更多的细节)。 但这与您的关注并不重要。 检查错误的方式不正确。 您应该检查fputs的返回值,并检查它是否小于0 。 如果是,那么您可以检查errno以了解导致失败的原因,但这是可选的(应该在调用任何其他功能之前完成)。 所以,这样的事情应该做的诀窍: int result = fputs(buf, somefile); /* optionally read errno ...
  • __error函数返回一个指向调用线程的errno变量的指针。 errno宏取消引用该指针,从而产生一个可以出现在等号两侧的左值。 回答你的问题: 该函数确定该特定线程的errno变量的正确地址。 每个线程都有自己的。 是的,它变成(* __error()) = 0; 它为该线程的errno变量赋值0 。 The __error function returns a pointer to the errno variable for the calling thread. The errno macro d ...
  • 第一个版本是正确的两个(第二个版本实际上是错误的 - pthread_mutexattr_init()需要在成功时返回零或者在失败时返回正错误号;它没有定义为设置errno因此errno的值不一定相关) 。 POSIX没有强制设置pthreads函数来设置errno (它们可能会也可能不会设置它 - 没有要求)。 返回值本身就是错误号。 如果返回的值为0则成功,如果是其他任何内容,您可以将其分配给errno以查找错误(或使用任何其他int变量来保存该值,然后将其传递给strerror() ,例如)。 The ...
  • 如果您阅读mq_receive手册页,您将看到EMSGSIZE含义 msg_len 小于消息队列的mq_msgsize属性 [强调我的] 这是真的,你将mq_msgsize属性设置为msg_size + 1 ,然后你收到的msg_size比mq_msgsize属性少一个。 设置mq_msgsize属性时不需要+1 ,只需将其删除即可。 If you read the mq_receive manual page you will will see that EMSGSIZE means msg_len wa ...
  • 我最终发现了问题所在。 在原始代码的第2行中,我打算import config from "./config" 。 做出改变可以完美地修复它。 对于阅读和遇到类似问题的其他人,请确保您正确导入。 I ended up finding out what the problem was. In line 2 of my original code, I meant to have import config from "./config". Making that change fixed it perfect ...
  • 使用errno主要原因是提供有关错误状况的更多信息。 这在函数的大多数(甚至全部 )可能的返回值实际上是有效的返回值的情况下尤其有用。 考虑fopen()函数,它返回一个指向FILE的指针。 每个可能的返回值也是一个有效的返回值,除了NULL 。 所以fopen()在失败时返回NULL 。 但是,你不能说出究竟是什么导致了功能失效。 因此, fopen()使用errno来表示确切的错误条件,即文件不存在,或者你没有权限读取它,或者系统内存不足,或者其他什么。 你可以把errno想象成一个全局变量(它曾经是直 ...
  • 没有可移植的方法来做到这一点。 POSIX(和C)允许实现使用所有正int值作为错误号,所使用的最大数量没有常量,并且可能没有大于int的整数类型。 There is no portable way to do this. POSIX (and C) allows the implementation to use all positive int values as error numbers, there is no constant for the maximum number used, and t ...
  • 这打印ENODEV: No such device 。 import errno, os def error_text(errnumber): return '%s: %s' % (errno.errorcode[errnumber], os.strerror(errnumber)) print error_text(errno.ENODEV) This prints ENODEV: No such device. import errno, os def error_text(errnumbe ...
  • 问题与您的电子邮件服务器设置有关。 不要弄清楚要解决的问题,只需将EMAIL_BACKEND中的EMAIL_BACKEND settings.py为以下内容: if DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' 这样,django发送的任何电子邮件都将显示在控制台中,而不是尝试传递。 然后,您可以继续开发应用程序。 如果您正在开发,在控制台上打印电子邮件是很好的,但如果您的应用程序发送大量电子邮件,则 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。