Nhibernate使用ADO.NET连接数据库吗?(Is Nhibernate using ADO.NET for connecting to database?)
什么是nhibernate的数据提供者? 它是ADO.NET吗?
What is the data provider for nhibernate? Is it ADO.NET?
原文:https://stackoverflow.com/questions/6086870
更新时间:2021-01-28 20:01
最满意答案
你应该这样做:
@media all and (max-width: 767px) { .global-container { margin-top: 0; background-image: none; } }
如果您想要定位桌面,则可以使用:
@media (min-width:1025px) { .global-container { margin-top: 0; background-image: none; } }
我只是注意到你正在使用
SASS
,你可以这样做:.global-container { margin-top: 60px; background-image: $image-bg; @media (max-width: 767px) { /* Your mobile styles here */ } @media (min-width:1025px) { /* Your desktop styles here */ } }
You should do like this:
@media all and (max-width: 767px) { .global-container { margin-top: 0; background-image: none; } }
If you want to target desktop, you can use:
@media (min-width:1025px) { .global-container { margin-top: 0; background-image: none; } }
I just notice you're using
SASS
, you can do like this:.global-container { margin-top: 60px; background-image: $image-bg; @media (max-width: 767px) { /* Your mobile styles here */ } @media (min-width:1025px) { /* Your desktop styles here */ } }
相关问答
更多-
CSS中的媒体查询条件(Media query condition in CSS)[2022-04-03]
第三个媒体查询中的规则总是覆盖第二个。 您需要交换最后两个的顺序,以便1024px在适用时覆盖768px。 The rules in the third media query are always overriding the second one. You need to swap the order of the last two so that the 1024px will override the 768px when applicable. -
使用像素值,而不仅仅是-sm或-sm-max而是输入断点发生的值。 Use pixel values, not just -sm or -sm-max instead enter your value where the breakpoint happen.
-
使用CSS进行类和媒体查询(Use CSS for class and media query)[2022-11-22]
您已经使用纯CSS实现了最紧凑的代码。 要实现更干燥的 CSS代码,可以使用CSS预处理器 。 它们被标记为dynamic-css 。 他们中的一些人较少 ,而且很少 。 少例 : @small-menu: 10px; menu { width: 100px; } menu.closed { width: @small-menu; } @media (max-width:1000px) { menu { width: @small-menu; } } ... -
你应该这样做: @media all and (max-width: 767px) { .global-container { margin-top: 0; background-image: none; } } 如果您想要定位桌面,则可以使用: @media (min-width:1025px) { .global-container { margin-top: 0; background-image: none; ...
-
css中的媒体查询(media query in css)[2022-12-28]
我相信你想要这个: @media (min-width: 320px) and (max-width: 1023px) { /* styles for width > 320px but < 1023px */ } @media (min-width: 1024px) { /* styles for width > 1024px only */ } 这样您就不必覆盖任何样式。 否则你可以这样做: @media (min-width: 320px) { /* styles for wi ... -
见http://blogs.msdn.com/b/iemobile/archive/2010/12/08/targeting-mobile-optimized-css-at-windows-phone-7.aspx See http://blogs.msdn.com/b/iemobile/archive/2010/12/08/targeting-mobile-optimized-css-at-windows-phone-7.aspx
-
最简单的解决方案是使用flexbox - 您也可以获得良好的覆盖率 。 .container { display: flex; align-items: center; } 有类似的东西
-
或者,有没有办法根据显示页面的设备宽度定义两个不同的HTML布局? 这是采取imho的路线。 HTML没有类似的机制来为视口定义不同的规则集。 Or alternatively, is is there a way to define two different HTML layouts based on the width of the device the page is displayed on? Thats the route to take imho. HTML doesn't have a si ...
-
我不是100%肯定你想要的输出,但是这个LESS只定义red一次,并将它应用于两者: @tablet: ~"(min-width: 768px) and (max-width: 980px)"; body { aside { color: blue } &.homepage { aside { color: red } } @media @tablet { .homepage; } } 产生这个CSS: body aside { color: #0000ff; ...
-
不要操纵CSS display: property。 相反,使用CSS类来控制侧边栏及其句柄的可见性。 这样,您可以使用媒体查询来控制元素是否显示。 在下面的演示中,单击“整页”按钮以查看其在屏幕上的工作方式> 1160px。 $(function() { $('.right_sidebar, .right_preview').on('click', function() { $('.right_sidebar, .right_preview').toggleClass('lt-1160-h ...