我目前在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兼容模式下显示网站.
非常感谢.
我想将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)
任何帮助都会很棒.