小编Ale*_*x S的帖子

如何在现有ARM模板上保持资源API版本的最新版本?

我有一个现有的Azure模板,它提供了以下资源

Microsoft.ClassicStorage/StorageAccounts (api version 2014-06-01)
microsoft.insights/components (api version 2014-08-01)
Run Code Online (Sandbox Code Playgroud)

还有一些......

使用文章资源提供程序和类型中的代码,我发现模板上的资源API版本背后的版本很少:

Microsoft.ClassicStorage/StorageAccounts. Current: 2014-06-01, available:

2016-11-01
2016-04-01
2015-12-01
2015-06-01
2014-06-01
2014-04-01-beta
2014-04-01
2014-01-01

microsoft.insights/components. Current: 2014-08-01, available:

2015-05-01
2014-12-01-preview
2014-08-01
2014-04-01
Run Code Online (Sandbox Code Playgroud)

以下是我的问题

  1. 在模板中维护资源API版本的最佳做法是什么?
  2. 我在哪里可以了解每个API版本中引入的更改?
  3. 如果我在已使用旧API版本配置的资源上更改API版本,Azure会做什么?

azure azure-resource-manager

6
推荐指数
2
解决办法
2841
查看次数

按钮文本换行:垂直对齐问题

我需要在我的按钮中包装文本,所以我找到了这个解决方案:

如何用固定宽度包装html按钮的文本

但是,在应用解决方案后,我注意到按钮的垂直对齐方式发生了变化.这是截图:

http://tinyurl.com/88hah7l

这是代码:

<html>
<head>
    <title>Button Wrap</title>

    <style type="text/css">

        INPUT.StandardButton
        {           
            WIDTH: 87px; 
            HEIGHT: 38px;
            font-size: 10pt; 
            Font-weight: bold;                      
            cursor: pointer;
            FONT-FAMILY: Arial, Verdana;
            COLOR: #0049A5;                                 
        }

    </style>

<head>
<body>

    <input type="button" value="NoWrap" class="StandardButton" />
    <input type="button" value="This is Test 1" class="StandardButton" style="white-space: normal;" />
    <input type="button" value="This is Test 2" class="StandardButton" style="white-space: normal;"  />
    <input type="button" value="This is Test 3" class="StandardButton" style="white-space: normal;" />

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

知道造成对齐变化的原因吗?谢谢!

html css button alignment word-wrap

2
推荐指数
1
解决办法
2608
查看次数