小编vir*_*s90的帖子

在IIS服务器web.config文件中放置<httpProtocol>的位置

我目前在IIS服务器上的Wordpress根目录中有默认的web.config文件.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
  <rules>
        <rule name="wordpress" patternSyntax="Wildcard">
            <match url="*"/>
                <conditions>
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                </conditions>
            <action type="Rewrite" url="index.php"/>
        </rule></rules>
</rewrite>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

但是,我想在那里添加以下行,但我不确定在哪里添加它们:

<httpProtocol>
  <customHeaders>
    <add name="X-UA-Compatible" value="IE=9; IE=10; IE=11" />
  </customHeaders>
</httpProtocol>
Run Code Online (Sandbox Code Playgroud)

这用于在IE兼容模式下显示网站.

非常感谢.

xml windows iis wordpress

4
推荐指数
1
解决办法
3362
查看次数

使用jQuery将2个HTML类和输出总数相乘

我想将2以下字段的内容相乘,并在另一个div中输出总数(24*£20.00):

<label class="tm-show-picker-value" for="tmcp_range_4">24</label>
<span class="price amount final">£20.00</span>
Run Code Online (Sandbox Code Playgroud)

我使用jQuery尝试了下面的方法,但我对此并不是很熟悉 - https://jsfiddle.net/e8shpr0e/

$('.total').html(
  parseFloat($('.tm-show-picker-value').text()) * parseFloat($('.price amount final').text())
)
Run Code Online (Sandbox Code Playgroud)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<label class="tm-show-picker-value" for="tmcp_range_4">24</label>
<span class="price amount final">£20.00</span>
<div class="total"></div>
Run Code Online (Sandbox Code Playgroud)

任何帮助都会很棒.

html javascript jquery multiplication

0
推荐指数
1
解决办法
202
查看次数

标签 统计

html ×1

iis ×1

javascript ×1

jquery ×1

multiplication ×1

windows ×1

wordpress ×1

xml ×1