Day5 - H - Supermarket POJ - 1456
A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral number of time units starting from the moment the sale begins. Each product takes precisely one unit
iframe根据子页面的内容来设置高度
以下的父页面与子页面交互的方法必须起一个页面服务才能使用(通过域名来访问)并且的保证父页面与子页面是在同一域名下,不然是会报错的 contentDocument是获得iframe子窗口的document对象,兼容ie8+,我们可以在iframe加载完毕之后通过这个对象来获取iframe子页面的内容高度,从而来设置设置iframe的高度.再给iframe设置高度时子页面的默认样式margin要记得清除(不清楚是会有这个margin大小的误差的,有这个margin的话子页面的内容就无法全部显示出来
03php拉取服务器信息并生成json
<?php $servername = "服务器"; $username = "用户名"; $password = "密码"; $dbname = "数据库名称"; $con =mysqli_connect($servername, $username, $password, $dbname); $sql = "SELECT * FROM paobu"; $result = mysqli_query($con,$sql); if (!$result) { printf("Error:
今日推荐
周排行