text-decorations

CustomRichTextBox StrikeThrough TextDecoration

和自甴很熟 提交于 2020-01-07 06:53:19
问题 I want to add a TextDecorations.Strikethrough decoration button to my custom RichTextBox i am using the code bellow for adding and removing the TextDecoration the thing is that i am getting an InvalidCastException: Unable to cast object of type 'MS.Internal.NamedObject' to type 'System.Windows.TextDecorationCollection'. when i am selecting a range greater than the one that is strikedthrough and clicking the "StrikeThrough" button. My Code private void StrikeOutButton_Click(object sender,

CSS text-underline rendering difference between FF/IE and Chrome

蹲街弑〆低调 提交于 2019-12-22 12:37:46
问题 I have a question. In the following url I have a set of h1,h2 and p elements with their respective css styling. The h1 element has text-decoration underline. http://nostalgia.mx/light2.html Open the site with both firefox+ie and chrome and you'll notice the profound differences: 1.- firefox+ie make the underline proportional to the fontsize of the element being underlined, which is very smart. Google keeps it thin and un-proportional. 2.- firefox+ie 'fuse' or 'meld' the text itself with the

Why does the text-decoration: none not work inside p?

。_饼干妹妹 提交于 2019-12-20 02:34:37
问题 I have the following HTML and CSS snippet and I want the "!" not to be underlined, but it is. What am I doing wrong? p { color:red; text-decoration: underline; font-size: 1.2em; } span.none { text-decoration: none; } <p class="p">Click the thumb<span class="none">!</span></p> 回答1: add display:inline-block; to span.none class p { color:red; text-decoration: underline; font-size: 1.2em; } span.none { text-decoration: none; display:inline-block; } <p class="p">Click the thumb<span class="none">!

Text-decoration: underline not applying with inline-block span elements

点点圈 提交于 2019-12-19 19:42:56
问题 I'm having an issue with text-decoration: underline on two spans that use inline-block . The [problem is only one part of the URL will underline when hovered, the other does not. I need to keep the display property, otherwise text-overflow won't get applied (see: Text-overflow: ellipsis alignment issue) HTML: <div class="details" itemscope itemtype="http://data-vocabulary.org/Product"> <h2> <a class="heading" href="/product/acmesw" title="Acme Super Widget"> <span class="trunc" itemprop="name

Text-decoration: none not working

折月煮酒 提交于 2019-12-18 18:49:39
问题 Totally baffled! I've tried rewriting the text-decoration: none line several different ways. I also managed to re-size the text by targeting it but the text-decoration: none code will not take. Help much appreciated. Code .widget { height: 320px; width: 220px; background-color: #e6e6e6; position: relative; overflow: hidden; } .title { font-family: Georgia, Times New Roman, serif; font-size: 12px; color: #E6E6E6; text-align: center; letter-spacing: 1px; text-transform: uppercase; background

text-decoration not working for visited state link

老子叫甜甜 提交于 2019-12-17 23:01:48
问题 I'm new on CSS and trying to understand how links are modified due to the changed state. On my scenario, I want to change the text-decoration to the line-through when the link is on visited state. However, neither on Mozilla nor Chrome browser, text-decoration of the text content not updated with line-through when the link is on visited state, shown as below. Where did I go wrong? Please notify that the color is updated (to green) when the link state changed to visited while the text

How to remove only underline from a:before?

你。 提交于 2019-12-17 17:36:32
问题 I have a set of styled links using the :before to apply an arrow. It looks good in all browser, but when I apply the underline to the link, I don't want to have underline on the :before part (the arrow). See jsfiddle for example: http://jsfiddle.net/r42e5/1/ Is it possible to remove this? The test-style I sat with #test p a:hover:before does get applied (according to Firebug), but the underline is still there. Any way to avoid this? #test { color: #B2B2B2; } #test p a { color: #B2B2B2; text

setting JTextPane to content type HTML and using string builders

雨燕双飞 提交于 2019-12-17 13:38:48
问题 I'm using string builders to append text to my JTextPane, I've set content type as pane.setContentType("text/html"); but the no text actually appears on my JTextPane. This is an example of my append: buildSomething.append("<b style=\"color:pink\">"+Birthday+"</span>"); Is there something I'm doing severely wrong? And how do I go about fixit it? 回答1: Every time JTextPane.setText(...) is called a new content type is determined. Start the text with "<html>" and you've got HTML. A new document is

CSS text-decoration underline color [duplicate]

牧云@^-^@ 提交于 2019-12-17 04:22:40
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Changing Underline color It's possible to change only line color which is under text? I would like to see something like red letters with a blue line below it, but I can't find out how to get this done. 回答1: (for fellow googlers, copied from duplicate question) This answer is outdated since text-decoration-color is now supported by most modern browsers. You can do this via the following CSS rule as an example:

Why does text-decoration stop inheriting based on the positioning of the child element?

泄露秘密 提交于 2019-12-12 19:46:46
问题 If I have parent and child divs and I set text-decoration:underline on the parent, this will apply to the text content of the child div. If however I set the child div to have position:absolute or position:fixed , the text decoration is no longer inherited. I looked at the spec, but I didn't see anything describing this. Also most places, e.g. MDN, describe text-decoration and text-decoration-line as not inherited, which makes me wonder why it ever works. That said, this behaviour seems to be