safari

HTML for playing .MOV files in Safari 8 — What Changed?

痞子三分冷 提交于 2021-01-21 10:51:06
问题 I have a fairly large library of QuickTime .MOV files that get served by a page that used to work great; the HTML hasn't changed in years , but someone noticed it no longer works in Safari, although all other browsers seem to be fine. Instead, now in Safari 8.0.7 in OS X , it shows a " Missing Plug-In " button, which when pressed pops up an alert that says: This web page has content that requires an Internet plug-in. This page contains content that cannot be shown because its type is

HTML for playing .MOV files in Safari 8 — What Changed?

大兔子大兔子 提交于 2021-01-21 10:48:07
问题 I have a fairly large library of QuickTime .MOV files that get served by a page that used to work great; the HTML hasn't changed in years , but someone noticed it no longer works in Safari, although all other browsers seem to be fine. Instead, now in Safari 8.0.7 in OS X , it shows a " Missing Plug-In " button, which when pressed pops up an alert that says: This web page has content that requires an Internet plug-in. This page contains content that cannot be shown because its type is

Probleme CSS3 scale transform and overflow:hidden on Safari

孤者浪人 提交于 2021-01-21 09:43:22
问题 i have a problem with scale transforme effect and overflow on Safari. When i used this effect on a div content, the overflow not work on a rounded container. here my code: .container{ width:100px; height:100px; border-radius: 50%; background:none; z-index:100; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.1); overflow:hidden; -webkit-transition:all .9s ease-in-out; // Chrome Safari -moz-transition:all.9s ease-in-out; // Mozilla -o-transition:all.9s ease-in-out; //

Probleme CSS3 scale transform and overflow:hidden on Safari

北城余情 提交于 2021-01-21 09:41:04
问题 i have a problem with scale transforme effect and overflow on Safari. When i used this effect on a div content, the overflow not work on a rounded container. here my code: .container{ width:100px; height:100px; border-radius: 50%; background:none; z-index:100; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.1); overflow:hidden; -webkit-transition:all .9s ease-in-out; // Chrome Safari -moz-transition:all.9s ease-in-out; // Mozilla -o-transition:all.9s ease-in-out; //

Probleme CSS3 scale transform and overflow:hidden on Safari

强颜欢笑 提交于 2021-01-21 09:39:25
问题 i have a problem with scale transforme effect and overflow on Safari. When i used this effect on a div content, the overflow not work on a rounded container. here my code: .container{ width:100px; height:100px; border-radius: 50%; background:none; z-index:100; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.1); overflow:hidden; -webkit-transition:all .9s ease-in-out; // Chrome Safari -moz-transition:all.9s ease-in-out; // Mozilla -o-transition:all.9s ease-in-out; //

Safari: focus event doesn't work on button element

删除回忆录丶 提交于 2021-01-21 09:10:48
问题 The focus event works fine on all browsers but Safari when it has been clicked. And it works fine on div[tabindex] element, but don't work on button or input:button element. It also can get the focus event when I use $('.btn').focus(). Why does the focus event haven't triggered on click ? Here is my code: $(".btn").focus(function (e) { $(".result").append("<p>Event:"+e.type+", target:"+e.target+"</p>"); }) .result{min-height:200px;border:1px solid #000;} <script src="https://ajax.googleapis

Safari: focus event doesn't work on button element

大兔子大兔子 提交于 2021-01-21 09:08:46
问题 The focus event works fine on all browsers but Safari when it has been clicked. And it works fine on div[tabindex] element, but don't work on button or input:button element. It also can get the focus event when I use $('.btn').focus(). Why does the focus event haven't triggered on click ? Here is my code: $(".btn").focus(function (e) { $(".result").append("<p>Event:"+e.type+", target:"+e.target+"</p>"); }) .result{min-height:200px;border:1px solid #000;} <script src="https://ajax.googleapis

How open link in safari mobile app from webview

纵然是瞬间 提交于 2021-01-21 04:24:05
问题 There are many topics of this here, but they all need native code interaction to work. In my case, it is necessary to be able to do it directly from the url, without any interaction with my mobile app. I tried: <a href="safari://google.com" target="_blank">Open Google in Safari</a> and <a href="webkit://google.com" target="_blank">Open</a> and based in this post. <script> $(document).on('click', 'a[target="_blank"]', function (ev) { var url; ev.preventDefault(); url = $(this).attr('href');

【python爬虫】用requests库模拟登陆人人网

南楼画角 提交于 2021-01-21 03:26:53
说明:以前是selenium登陆取cookie的方法比较复杂,改用这个 """ 用requests库模拟登陆人人网 """ import requests # 这例有个坑,这个登录地址不是直接看到的登录地址,这是人人网的反爬机制 url = " http://www.renren.com/PLogin.do " # url = "http://www.renren.com/SysHome.do" # 在此输入账号密码,注意“email”“password”是网页中查到的key值 data = { " email " : " 18602992468 " , " password " : " qqq123 " } headers = { " User-Agent " : " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36 " } session = requests.Session() session.post(url, data = data, headers = headers) response = session.get( " http://www.renren.com/970006185 " )

写一个python 爬虫爬取百度电影并存入mysql中

江枫思渺然 提交于 2021-01-20 06:29:35
目标是利用python爬取百度搜索的电影 在类型 地区 年代各个标签下 电影的名字 评分 和图片连接 以及 电影连接 首先我们先在mysql中建表 create table liubo4( id int not null auto_increment, score VARCHAR( 50 ) DEFAULT 0, name VARCHAR( 50 ) DEFAULT 0, Pic VARCHAR( 200 ) DEFAULT 0, dianyingurl VARCHAR( 200 ) DEFAULT 0, leixing VARCHAR( 50 ) DEFAULT 0, niandai VARCHAR( 50 ) DEFAULT 0, diqu VARCHAR( 50 ) DEFAULT 0, PRIMARY KEY (id)) 其中 图片地址列和电影地址列的 字段名要设置长一点 否则插入时不够,最好为每一列设置默认值。 我们在切换页数时会发现,浏览器地址栏中是没有变化的,这就使得无法直接用地址栏的url变化和xpath来获取标签进行爬取。 那么我们就用另外一种-----解析json字符串。 首先打开f12 我们在切换页数时,会出现两个记录。 点开1.2两个行的行踪记录,能看到他们的Request URL 仔细看会发现这两个request的url主要不同在在于