underline

Underline form field value using itextsharp

喜夏-厌秋 提交于 2019-12-11 16:27:52
问题 I have an application that uses itextsharp to fill PDF form fields. I got new requirement from the customer to allow underlining the fields values. I have read many posts including answers to questions in this site but I could't figure out a way to do it. Current my code does the following: Creates a PDFStamper instance Get the form fields using stamper.AcroFields property Set the field value using the AcroFields.SetFieldRichValue() method. But when I am opening the PDF the field is empty. I

how to underline the access key in an input button

柔情痞子 提交于 2019-12-11 12:43:09
问题 I have a button and I would like to underline the access key letter, <u></u> doesn't work, and C̲ (C̲) changes the font, it should be verdana <input class="boton" type="button" value="C̲ancel" accesskey="C" onclick="cancel();"/> In my css I put the font type: input.boton{ font: bold 11px verdana !important; color: #000; } How can I do this? 回答1: There's no HTML entity you can apply that would render an underline. Inside a value attribute you cannot use other HTML tags, so you can't render an

Animate Link underline on click as opposed to on hover?

血红的双手。 提交于 2019-12-11 07:45:05
问题 Having trouble getting my head around how I can recreate this effect as an on click as opposed to on hover? I'm not great with jQuery so having trouble working out how I can trigger this to happen on click. I came across this website to help create the effect I'm going for (Underline Left to Right). The demo can be seen in the following link... http://bradsknutson.com/blog/css-sliding-underline/ I'm currently using the following js to fade in a div and I want the line to slide in at them same

NSAttributedString does not appear when generating PDF

别等时光非礼了梦想. 提交于 2019-12-11 03:53:23
问题 This used to work and now, all of a sudden, it stopped working: For an iOS 7 iPad App, I generate a PDF with UIGraphicsBeginPDFContextToFile(pdfPathWithFileName, CGRectZero, nil); ... UIGraphicsEndPDFContext(); Within that code block, the following methods used to render text underlined, but recently, it just stopped working and any text passed to the method is not rendered at all: +(void)drawUnderlinedText:(NSString *)text withFont:(UIFont *)font andColor:(UIColor *)color andLocationX:(int

Can't get underline to show up when triggered

青春壹個敷衍的年華 提交于 2019-12-11 03:23:52
问题 I have the following style, but when the mouse over trigger is true, no underline shows up on the text. <Style x:Key="HyperlinkToggleButtonStyle" TargetType="ToggleButton"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ToggleButton"> <TextBlock x:Name="TextBlock"> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> </TextBlock> </ControlTemplate> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property=

CSS - Underline text but ignore the spaces

一世执手 提交于 2019-12-11 02:24:20
问题 I have a couple of links that have a margin-left of 3px. These links are underlined and look like that: <a href='#'> test </a> Unfortunately, there are spaces inside the link and I'm not able to remove these space since I don't have access to the HTML code. These spaces are also underlined, which I'm not happy with. Is there any way to remove them without changing the HTML? Here is a fiddle that shows my problem: http://jsfiddle.net/e8quz/ Update: Here is a picture, what I want it to look

How to underline an EditText

廉价感情. 提交于 2019-12-10 16:38:40
问题 I am having some problems to underline an EditText in AndroidStudio. This is what I am looking for (this is just a photo, not my real text): enter image description here But I do not really know any property to do that. My code right now is really simple. Just the "normal" one: <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textPersonName" android:ems="10" android:layout_margin="16dp" android:id="@+id/tx_titulo" android:layout

Customize underline pattern in NSAttributedString (iOS7+)

坚强是说给别人听的谎言 提交于 2019-12-10 15:05:39
问题 I'm trying to add a dotted underline style to an NSAttributedString (on iOS7+/TextKit). Of course, I tried the built-in NSUnderlinePatternDot : NSString *string = self.label.text; NSRange underlineRange = [string rangeOfString:@"consetetur sadipscing elitr"]; NSMutableAttributedString *attString = [[NSMutableAttributedString alloc] initWithString:string]; [attString addAttributes:@{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle | NSUnderlinePatternDot)} range:underlineRange]; self

Changing underline color with css doesn't work in chrome?

こ雲淡風輕ζ 提交于 2019-12-10 13:19:51
问题 I am trying to change the underline color during a hover event using spans and it works in IE9 and Firefox 13.01 but it doesn't work in Chrome (it should underline in gold). #menu li:hover span.underline { text-decoration:underline; color: #FAA301; } <ul id="menu"> <li style="z-index: 7;"><span class="underline"><a href="#">link1</a></span></li> </ul> Here is js.fiddle: http://jsfiddle.net/wuUpL/7/ . I originally got the idea from this post https://stackoverflow.com/a/1175402/1490248 but that

CSS linked images are being underlined (“a” display is set to block)

自闭症网瘾萝莉.ら 提交于 2019-12-10 10:13:29
问题 I have a menu for which I wanted all of the space around the text, within each individual item, to take the user to the specified page. I looked around on the web and found that the best solution is to set the "a" display to block, as follows: a { display: block; height: 100%; text-decoration: underline; } I have managed to get this working perfectly but want to put images in some of them - like a calendar icon for the events option. I notice it is now underlining the links too. Is there any