hyperlink

Text wrapping in WPF hyperlink

倖福魔咒の 提交于 2019-12-05 13:18:55
问题 In my WPF application I have this: <StackPanel> <TextBlock> <Hyperlink> <TextBlock TextWrapping="Wrap" Name="HyperlinkText" /> </Hyperlink> </TextBlock> </StackPanel> But if I set HyperlinkText.Text to a long text that wraps, the whole text is underlined only once at the bottom (see image). Is there a way to have every line underlined separately without manual wrapping? 回答1: An easier way to achieve that is to use Run instead of TextBlock. Hope it helps. 回答2: This is a really, really annoying

Excel 2010 - Hyperlink Text Only & Not Entire Cell

China☆狼群 提交于 2019-12-05 13:07:46
问题 Is there a way to add a hyperlink to text only and not the entire cell in Excel 2010? I am only able to insert a hyperlink which affects the entire cell (even white space after the text), but I wish to have it so that a user can click on the non-hyperlinked section of the cell in order to select the cell without activating the hyperlink. Is this possible (ideally without VB)? Many thanks. 回答1: I'm not sure.. I just wrote this, but it acts the same as adding a hyper reference (although you can

What's the best practice(s) to place an icon before or after links to indicate file type (ex: linking Adobe PDF, audio or video)

不想你离开。 提交于 2019-12-05 12:44:14
My team was debating what the best practice would be for wanting to insert an icon after links to the various media file types we have on our site. Examples would be linking to a PDF and wanting to insert an icon image to let users know it's a PDF. The same could be used for video or audio files. I suggested using CSS, putting a class on the and using :after to create an element. I recall IE6 and IE7 won't support the pseudo CSS class, but aside from that, would there be a better practice? If the links were in an unordered list, I know the icon image could be used to replace a bullet character

How does bash recognize a link?

こ雲淡風輕ζ 提交于 2019-12-05 12:29:47
In a bash script that captures a href link, how does bash know that TEXT is a link and not a typical string? Why at the end when $TEXT="www.google.com", TEXT is still a link? Can you do that with a file? For example having a 'Click me' that runs a scrip. shopt -s nocasematch TEXT='<a href="http://www.google.com/search/something/lulz/here2 i=!mfo1iu489fn1o2jlk21m4098mdoi">"test link"</a><br>' TEXT=${TEXT##*href=\"} TEXT=${TEXT%%\"*} TEXT=${TEXT##*//} TEXT=${TEXT%%/*} echo $TEXT Mateusz Kubuszok I'd say that bash itself doesn't recognize links. But some terminal emulators does in gnome terminal

How to add canonical tag the pages that are derived from same link?

懵懂的女人 提交于 2019-12-05 11:41:51
I am using symfony 1.0.6. In my site I have two URLs. http://newe4s.com/news/articles/view/033/job-news-and-information and http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs Now, all the new articles are using same layout and both above links get same data from database. Google is reporting duplication of contents since it is getting multiple URLs for same content. When I searched for a solution, I got that using "canonical" structure fixes this issue which require <link rel="canonical" href="http://newe4s.com/news/articles/view/033

why “a:hover MUST come after a:link and a:visited(w3school)”? [duplicate]

。_饼干妹妹 提交于 2019-12-05 10:34:08
This question already has answers here : Why does .foo a:link, .foo a:visited {} selector override a:hover, a:active {} selector in CSS? (3 answers) Closed 3 years ago . I‘m study CSS in the "w3schools", in the chapter of "link", they say: "When setting the style for several link states, there are some order rules: a:hover MUST come after a:link and a:visited a:active MUST come after a:hover" I want to know why the correct order is L.V.H.A, not L.H.V.A or another. Pseudo-classes must be declared in a specific order. The mnemonic L o V e HA te is always useful for remembering the correct order:

Is it acceptable to make external links target=“_blank”?

岁酱吖の 提交于 2019-12-05 10:33:50
I'm a bit confused whether or not I should make the links on my website that point externally target="_blank". Does this practice negatively affect the usability of your site (i.e. breaking the "back button trail")? Is it commonly found annoying by most users? Is it acceptable in some situations but not others? I want to make an enjoyable user experience for all of my sites and would hate to do something that annoys my users. What is your experience/advice on the matter? I've read plenty of usability documentation suggesting that end users resent being forced to open a link in a new window. I

how render string to html link

我只是一个虾纸丫 提交于 2019-12-05 10:32:23
I send some message to email as below: string link = "http://localhost:1900/ResetPassword/?username=" + user.UserName + "&reset=" + HashResetParams( user.UserName, user.ProviderUserKey.ToString() ); email.Body = link; This string was sent to email, but shown as string, not as link, I want send it as link to click. Try this string link = String.Format("<a href=\"http://localhost:1900/ResetPassword/?username={0}&reset={1}\">Click here</a>", user.UserName, HashResetParams( user.UserName, user.ProviderUserKey.ToString() )); Wrap link in an anchor tag: string link = '<a href="http://......">Click

Mandrill Editable Template: mc:edit link href

核能气质少年 提交于 2019-12-05 09:43:53
I'm trying to use Mandrill templates to send order tracking emails. Using the mc:edit works well for simple text like <span mc:edit="ship_id">ship_id</span><br> I was wondering if there was a way to pass the href link in a variable i.e. tracking_url <a class="mcnButton " title="Track order" href=tracking_url target="_blank" style="font-weight: bold;text-align: center;">Track Order</a> I'm using Djrill for Django and here's the code which sends the email so far, and I'd like to add tracking_url as a template_content variable or something similar msg = EmailMessage(subject="Track your order",

How to use internal links with wildcard items in Sitecore?

霸气de小男生 提交于 2019-12-05 09:42:23
I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL. This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL. Does anyone know of a way to overcome this, or perhaps know of a way to augment the default behavior of interal links? Wesley