meta

Why can't Open Graph checkers detect Open Graph data?

家住魔仙堡 提交于 2019-12-11 17:03:56
问题 My page, after adding an SSL certificate (Let's Encrypt), cannot have preview fetched by Facebook or Twitter when sharing the link. I have followed The Open Graph protocol and include the following open graph tags: <meta property="og:type" content="article" /> <meta property="og:title" content="Corner Timer: gently make you feel guilty on time-wasting apps" /> <meta property="og:url" content="https://lyminhnhat.com/resources/productivity/corner-timer-gently-make-you-feel-guilty-on-time

My meta viewport doesn't work

自古美人都是妖i 提交于 2019-12-11 16:20:58
问题 I'm working at a website(Revogue).I'm trying to disable zoom for mobile phones and it doesn't work.I tried many metaviewports...Please help me(( <meta name="viewport" content="user-scalable=0, initial-scale=1, maximum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport

js语法

可紊 提交于 2019-12-11 15:39:43
js选择器 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>js选择器</title> </head> <body> <div id="d" class="box"></div> <input type="text" id="d2" class="box" /> <h3 class="h3"></h3> </body> <script> // 1、标签id名会存放到页面的名称空间中,在js内可以直接访问该名称空间,如果有同id的,多个对象都会获取,放在一个列表里 // console.log(d); // 2、getElement系列 // 根据id获取,如果有同id,会有阻隔机制,只会获取第一个 var d1 = document.getElementById('d'); console.log(d1); var d2 = document.getElementById('d2'); console.log(d2); // 根据类名获取,可以有相同类名,会全部获取放在列表里 var boxs = document.getElementsByClassName('box'); console.log(boxs[0]); // 不管结果是几个(0~n),都用列表来存放查询的结果 let h3 = document

放入div中的图片不变形的解决方法

与世无争的帅哥 提交于 2019-12-11 13:46:58
前言 在DIV CSS布局中对于图片排版时,如果使用CSS固定死图片大小(宽度 高度),如果图片相对于这个位置不是等比例大小,那么这张图片就会变形。以下是解决图片变形的方法。 方法 第一种 让图片和布局宽度高度成等比例,这样CSS设置死宽度和高度,图片也是等比例缩小,图片也不会变形。 <head> <meta charset="UTF-8"> <meta name="viewport" content="width=<device-width>, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .imgcss{ width:400px; height: 400px; border:1px solid red; } .imgcss img{ width: 400px; height: 400px; } </style> </head> <body> <div class="imgcss"> <img src="./image/timg.jpg"> </div> </body> 图片原本的宽高都是800px,等比例缩小成400px后,图片不变形。如下图: 第二种 使用max-width:300px或max-height

Suggestions on storing view meta in SQL Server 2008

↘锁芯ラ 提交于 2019-12-11 11:09:34
问题 I want to store the view meta info like on which tables & columns & queries its created etc, into another mapping table,so that I can reproduce them later point of time. Right now I have a structure like this - CREATE TABLE [dbo].[MAPPING_VIEW] ( [ID] [int] NOT NULL, [OLD_VIEW] [varchar](40) NULL, [NEW_VIEW] [varchar](40) NULL, CONSTRAINT [PK_MAPPING_VIEW] PRIMARY KEY CLUSTERED ([ID] ASC) ) CREATE TABLE [dbo].[MAPPING_VIEW_TBL] ( [ID] [int] NULL, [PARENT_ID] [int] NULL, [OLD_TBL] [varchar](40

iOS9 Safari viewport issues, meta not scaling properly?

半城伤御伤魂 提交于 2019-12-11 10:19:09
问题 I have a bizarre issue with a recent website deployment - the website is not scaling properly on any iOS9 Safari-mobile browser which appears to shrink the site. This does not appear to be a problem for any other device as far as I can see and I have tested it on Firefox (Android and Desktop), Chrome (Android and Desktop), Safari (Desktop), IE (Desktop). Does anyone know a fix for this? Many thanks [UPDATE] Following on from a discussion here this meta seems to do the job: <meta name=

HTML基础

久未见 提交于 2019-12-11 07:42:33
1.字符集 < meta charset = "UTF-8" > < meta charset = "gb2312" > 指定字符集要和文件保存字符集一致 utf-8 :体积大,包含所有字符 gbk :体积小,只包含中文和常用外文 2.dtd文档说明 < ! DOCTYPE html > html5版本说明 , 只能写在第一行 3.注释 < ! -- 注释内容 -- > 4.img < img src = "img1/3.jpg" width = "100px" height = "100px" alt = "图片不见了" title = "海贼王" / > < ! -- src:图片地址 width:宽度 height:高度 alt:当图片加载不出来时显示的文字 title:鼠标悬停至图片上方显示的文字 width,height同时指定时易发生变形,一般只指定其一即可 相对路径: .. /a.jpg 从上一层目录查找图片 .. / .. /a.jpg 从上一层的上一层目录查找图片 -- > 5.a标签 < html > < head > < meta charset = "utf-8" / > < title > a标签 < /title > < base target = "_blank" / > < ! --设置全局a标签页面打开方式,可被覆盖-- > < /head > <

Safari: Unrecognized Content-Security-Policy directive 'frame-ancestors'

孤街醉人 提交于 2019-12-11 07:24:47
问题 I have an application siteA.com that is loaded in an iframe inside siteB.com. No warning loading directly siteA.com but getting Unrecognized Content-Security-Policy directive 'frame-ancestors' when is inside an iframe in siteB.com; this only in Safari. All these changes were made in siteA.com Meta Tag with no luck <meta http-equiv="Content-Security-Policy" content="frame-ancestors siteB.com"> What headers should I add to siteA.com to allow Content-Security-Policy directive frame-ancestors?

special characters turned into question mark after duplication of the same page

南楼画角 提交于 2019-12-11 05:54:03
问题 since last friday, I've duplicated my first page ,and a lot of time (about 40 of the same one), after checking one of the duplicated pages , I found out that the special characters ( é,è,ç,...) were replaced by question marks. and so I've searched about what could make a issue like this, that is where people talked about : <meta charset="utf-8" /> I've looked more into that line of code that i've left alone from the whole time, It was automatically written when i started a new page and so i

Django permission inheritance problem and Meta

断了今生、忘了曾经 提交于 2019-12-11 05:31:42
问题 I understand Meta can be inherited if the superclass has abstract=True, but can't be inherited otherwise. Is this because Django somehow consumes and removes the Meta class from concrete classes? I'd like to do something as in the example below, so Derived can get the Meta properties from Base (in this case, to inherit permissions as part of django-guardian). Suggestions on how to achieve this would be appreciated. Ian class Base(Model): class Meta: permissions = (("foo", "Allowed to do foo")