新的Azure SQL数据库服务,可扩展性和DTU(New Azure SQL Database Services, how scalable and what are DTUs)
新的新Azure SQL数据库服务看起来不错。 但是我试图找出它们的可扩展性。
因此,例如,假设一个200个并发用户系统。
对于标准
Workgroup and cloud applications with "multiple" concurrent transactions
对于Premium
Mission-critical, high transactional volume with "many" concurrent users
“多个”和“多个”是什么意思?
Standard / S1还提供15个DTU,而Standard / S2提供50个DTU。 这是什么意思?
回到我的200个用户示例,我应该选择什么选项?
谢谢
编辑
然而什么是“最大会话”? 这是并发连接的数量吗?
The new new Azure SQL Database Services look good. However I am trying to work out how scalable they really are.
So, for example, assume a 200 concurrent user system.
For Standard
Workgroup and cloud applications with "multiple" concurrent transactions
For Premium
Mission-critical, high transactional volume with "many" concurrent users
What does "Multiple" and "Many" mean?
Also Standard/S1 offers 15 DTUs while Standard/S2 offers 50 DTUs. What does this mean?
Going back to my 200 user example, what option should I be going for?
Thanks
EDIT
However what is "max sessions"? Is this the number of concurrent connections?
原文:https://stackoverflow.com/questions/25548861
最满意答案
这里最简单的方法是设置ul li和ul li为90px 的行高(作为你的ul高度)并将padding-top和bottom设置为0。
li { float: left; line-height: 90px; } li a, .dropbtn { display: inline-block; color: black; text-align: center; padding: 0px 16px; text-decoration: none; }
但现在您的下拉列表已被破坏。 我们通过设置.dropdown-content链接的行高和高度来修复它:
.dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; line-height: normal; height: auto; }
现在它看起来很好,但你的图像没有正确对齐。 首先,我们需要为列表元素设置display:inline-block 。
li { float: left; line-height: 90px; display: inline-block; }
然后为image添加vertical-align:middle
li img { vertical-align: middle; }
你想知道的最后一件事是在第一个元素上不必要的悬停。 请记住,您可以使用nth-child,first-child,first-of-type与not selector结合来计算元素。 添加行:
li:first-child a:hover { background: none; }
现在一切都应该像你想要的那样工作。 无论如何,未来的提示很少。
不要害怕使用div。 当您需要在网站上设置样式和控制元素时,它会有所帮助。 它只不过是一个容器。
保持CSS清洁。 这是级联样式表。 你已经在你的CSS里面找到了一个样式,并且在这个样式之后,.dropbtn样式覆盖了前一个样式。
不要放弃和学习。 ;)
The easiest way here is set ul li and ul li a line-height for 90px (as your ul height) and set padding-top and bottom to 0.
li { float: left; line-height: 90px; } li a, .dropbtn { display: inline-block; color: black; text-align: center; padding: 0px 16px; text-decoration: none; }
But now your drop down list is broken. We fix it by setting line-height and height for .dropdown-content links like that:
.dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; line-height: normal; height: auto; }
Now it looks fine, but your image is not aligned correctly. First of all, we need to set display: inline-block for our list elements.
li { float: left; line-height: 90px; display: inline-block; }
And then add vertical-align: middle for image
li img { vertical-align: middle; }
The last thing you want to know is unwanted hover on the first element. Remember that you can use nth-child, first-child, first-of-type combined with not selector to count elements. Add line:
li:first-child a:hover { background: none; }
And now everything should work just like you want it to. Anyway, few tips for future.
Don't be afraid of using divs. It helps, helps a lot when you need to style and control elements on website. It's nothing more than just a container.
Keep your CSS clean. It's Cascading Style Sheets. You've got in your CSS li a styles and after this li a, .dropbtn styles that override the previous one.
Don't give up and learn on. ;)
相关问答
更多-
您可以在.logo类中添加z-index 。 这将使其呈现在图像上方。 例如 .logo { z-index: 100; } https://developer.mozilla.org/de/docs/Web/CSS/z-index You can add a z-index to your .logo class. This will render it above the image. e.g. .logo { z-index: 100; } https://developer.mozill ...
-
只需将其插入您的ul 。 #logo { height: 50px; width: auto; float: left; } nav ul { list-style-type: none; overflow: hidden; margin: 0; padding: 0; background-color: #1a1a1a; text-align: center; border: 1px solid #e7e7e7; display: in ...
-
你可以使用下面的CSS来获得你想要的所有3件事。 #navbar ul { list-style-type: none; display: table; } #navbar li{ float: left; text-align: center; } #navbar li a { display: table-cell; width: 200px; ...
-
HTML和CSS中心导航栏(HTML & CSS Center navigation bar)[2022-01-05]
使用flexbox就可以做到...... 添加flex-flow: row wrap; 如果导航大于视口,则允许菜单在较小的屏幕上换行。 您需要在所有浏览器FYI上运行这些样式的前缀。 .navigation nav { display: flex; justify-content: center; background-color: #333333; } ul { display: flex; flex-flow: row wrap; list-st ... -
你想要这样的东西吗? 注意:请点击以下代码段窗口中的full page链接,正确查看输出! .topnav { position: fixed; top: 0; left: 0; width: 100%; list-style-type: none; margin: 0; padding: 0; background-color: #ffff00; z-index: 10; } .topmenu { float: left; font ...
-
将此添加到#logo并尝试,然后将#logo分配给image 。 根据您的徽标大小重置高度和宽度。 #logo{ position:absolute; top:10px; left:10px; width:40px; height:40px; overflow:hidden; }
- Add this to your ...
-
将衬垫设置在身体上。 并且不要使用不推荐使用的center标签。 它工作http://jsfiddle.net/soov7k2k/ 。 您可能忘记正确定位导航栏了! position: fixed是工作的一半。 您需要在导航栏中添加top:0和left:0 ,否则它将无效。 看小提琴。 body { padding-top: 100px;//Or whatever the height of your navbar is. } Set padding-top to the body. And don't ...
-
这里最简单的方法是设置ul li和ul li为90px 的行高(作为你的ul高度)并将padding-top和bottom设置为0。 li { float: left; line-height: 90px; } li a, .dropbtn { display: inline-block; color: black; text-align: center; padding: 0px 16px; text-decoration: none; } 但现在您的下 ...
-
将左边距添加到波峰项目: margin-left: 96px; 。 但是,一旦所有菜单项都不适合窗口宽度,它就会移动,所以一定要注意这一点。 Add the left margin to the crest li item: margin-left: 96px;. However, it will move once all the menu items can't fit the window width, so make sure you take care of that too.
-
导航栏与徽标对齐(Navigation bar alignment with logo)[2024-02-27]
空间在那里因为浏览器有默认的边距和填充。 所以你通过“CSS重置”删除填充。 我只是展示了删除所有内容的填充和边距的基本方法。 现在,您可以根据需要设置自己的自定义填充和边距。 我不知道你是否知道,但我想说浏览器附带默认的“用户代理”样式。 例如,对于大多数浏览器,默认字体大小为16px,但您可以像填充和边距一样覆盖它。 在你的情况下,我相信身体有8px的余量。 *{ margin: 0; padding: 0; } body { background-color:white; } ...