title

Put title/alt attributes into CSS :after { content: image }?

不问归期 提交于 2019-12-03 12:25:38
I’ve got the following CSS to add a PDF icon to any link that links to a PDF: a.pdf-link:after { padding-left: 2px; content: url(../images/icon-pdf-link.gif);} Is it possible to put some title and alt attributes on this image? I would like it so that the user is able to hover over the icon and get some text like “This links to a .pdf file.” Which I’ve typically done just by putting title attributes to it, but can’t figure out if I can do that through this method. No, content only accepts raw text and image data, not HTML. You need to use JavaScript to dynamically add tooltips to your existing

“apple-mobile-web-app-title” on Android

流过昼夜 提交于 2019-12-03 11:37:39
is there an equivalent to iOS 6 meta tag apple-mobile-web-app-title for android web-applications? Something that gives you the possibility to define a long title and a short title. <title>Long name</title> <meta name="apple-mobile-web-app-title" content="Short name"> This is possible using the "application-name" meta tag. However it only appears to work with chrome. Firefox and the android browser don't use the title tag <head> ... <meta name="application-name" content="Awesome App!"> ... </head> From, Usage in web applications section http://w3c-webmob.github.io/installable-webapps/ Chrome

Setting window/picture title

二次信任 提交于 2019-12-03 11:33:35
I have: img = imread('pic.jpg','jpg'); r = img(:,:,1); g = img(:,:,2); b = img(:,:,3); figure, imshow(r); figure, imshow(g); figure, imshow(b); How to set title over each picture? You want to change the Name -property of the figure window. img = imread('pic.jpg','jpg'); r = img(:,:,1); g = img(:,:,2); b = img(:,:,3); figure('Name','this is the red channel'), imshow(r); figure('Name','this is the green channel','NumberTitle','off'), imshow(g); title(gca,'you can also place a title like this') fh = figure; imshow(b); set(fh,'Name','this is the blue channel') Also, if you call imshow(g,[]) , it

Different titles for each fragment in my viewpager

♀尐吖头ヾ 提交于 2019-12-03 11:02:42
I am using a viewpager "tabs + swipe" and I would like to set different titles in the actionBar for each fragment so that when I switch, title changes. I tried several things without success, only the last title displays... and does not change anymore when I switch... First, make your activity implement an OnPageChangeListener . Then, when you create your ViewPager , you can use mViewPager.setOnPageChangeListener(this) so that your activity will receive callbacks when the page changes. Finally, you need to implement the OnPageChangeListener callbacks. Your onPageSelected() method should be

gamma校正

三世轮回 提交于 2019-12-03 10:57:11
gamma校正可使得图像看起来更符合人眼的特性。gamma校正公式常写为Out= In gamma 或者Out= In 1/gamma 形式,式中,In表示Input image, Out 表示Output image。本文采用第一种形式。gamma校正前后图像的亮度对比如下图所示: 1. opencv-python实现gamma校正 1 import cv2 2 import numpy as np 3 import matplotlib.pyplot as plt 4 5 gamma1 = 0.4 6 gamma2 = 2.5 7 8 imgIn = cv2.imread('messi.jpg', 0) 9 imgIn = imgIn.astype(float) / 255 10 11 out1 = imgIn ** gamma1 12 out2 = imgIn ** gamma2 13 14 out1 *= 255 15 out1[out1 < 0] = 0 16 out1[out1 > 255] = 255 17 out1 = out1.astype(np.uint8) 18 19 out2 *= 255 20 out2[out2 < 0] = 0 21 out2[out2 > 255] = 255 22 out2 = out2.astype(np.uint8) 23 24

Is it possible to add title to charts?

浪子不回头ぞ 提交于 2019-12-03 10:55:05
I want to add a title to a chart, like in the gauge example or a pie chart. I want to display a title under or on top of the chart. Is this possible? I've been looking and can't find anything about this. if so , any tip to share? it would be something like this EDIT : i found there is a property to create text sprites for the title or any labels at the Ex.draw package . but i couldnt understand how to use it.. anybdy here have done the same? Since Ext.chart.Chart is an Ext.draw.Component, you can add sprites as items of it. Try to use this: Ext.create('Ext.chart.Chart', { default chart

Matplotlib placement of text e.g. suptitle inside the frame

自古美人都是妖i 提交于 2019-12-03 10:52:18
问题 So far i have placed my suptitles above the frame, like this: How can i get the suptitles from above the frame into the frame? So far i have a solution that just prints a text and sets it on the right position with computing xlim and ylim. However this is errorprone and if the text is different it just looks aweful. Is there a way to set the suplabel into the frame? Or just place text below the frame and centered? it would be really convenient, if i did not need to know about the data that is

Trouble left-aligning UIButton title (iOS/Swift)

别来无恙 提交于 2019-12-03 10:26:13
I'm having a problem left-aligning a UIButton 's text. I also tried changing it to .Right but it still stays centered. I also tried aButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 0) instead of aButton.titleLabel?.textAlignment = .Left but that doesn't change anything either. Is there an alternative way to programmatically change the alignment of a UIButton title's? allButtonViews = UIView(frame: CGRectMake(0, 44, 100, 100)) allButtonViews.backgroundColor = .redColor() let campusButton = UIButton(type: UIButtonType.System) as UIButton aButton.frame = CGRectMake(0, 0,

SQL Server Concatenate GROUP BY

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a query that looks like this SELECT J.JobID,T.Title FROM JobsTagMap J Left Join Tags T ON J.TagID=T.TagID That returns the following dataset (simplified, JobID is actually a UniqueIdentifier) JobID Title 1 Tag1 1 Tag2 2 Tag2 2 Tag5 2 Tag9 Now, i'd like to group this by the JobID-column and concatenate the Title, so the results is as following JobID Title 1 Tag1,Tag2 2 Tag2,Tag5,Tag9 How would i do that? 回答1: If you are using sql server 2005+. Then you can do like this: SELECT JobsTagMap.JobID, STUFF ( ( SELECT ',' +Title FROM Tags