我正在网上eBay的盈利预测计算这里
我似乎无法让输入字段在safari和移动safari中工作.它们在FF和Chrome中运行良好.我点击它们,但是当我输入时没有任何显示.我一直在搜索谷歌,但似乎无法找到任何线索.我想知道我是否在css中遗漏了一些东西.这是输入字段的css:
input {
width: 155px;
padding-left: 5px;
height: 24px;
cursor: text;
font-size: 18px;
font-weight: bold;
border: none;
border-radius: 3px;
box-shadow: inset 1px 1px 2px black;
-moz-box-shadow: inset 1px 1px 2px black;
-webkit-box-shadow: inset 1px 1px 2px black;
background-color: #F8FBEF;
}
Run Code Online (Sandbox Code Playgroud) 我正在学习php并构建了一个基于表单的实验计算器(也使用html和POST方法),它将值返回给表.当我输入我的值并单击提交时,计算器正常工作,但是当我第一次运行代码时,我在最后一行上得到两个"除以零"错误.在这里或通过Google搜索时,我似乎无法找到合理的解决方案或解释.您可以向newb提供任何解释,我们将不胜感激.
<?php
error_reporting(E_ALL ^ E_NOTICE);
//calculate the difference in price
$itemQty = $_POST['num1'];
$itemCost = $_POST['num2'];
$itemSale = $_POST['num3'];
$shipMat = $_POST['num4'];
$diffPrice = $itemSale - $itemCost;
$actual = ($diffPrice - $shipMat) * $itemQty;
$diffPricePercent = (($actual * 100) / $itemCost) / $itemQty ;
?>
Run Code Online (Sandbox Code Playgroud)