stylesheet

How to target headings for a specific div ID?

岁酱吖の 提交于 2019-12-08 19:20:59
问题 I am trying to style all the headings in my header with a different font-family than the headings on the rest of the page but I am having trouble getting the style to only apply to the specific header ID. Here is what I tried: #header h1,h2,h3,h4 { font-family:'Helvetica'; } But this causes all h1/2/3/4 tags to use the Helvetica font regardless of if they are in the header div or not. I'm sure I am missing something simple, can anyone help? Thanks! 回答1: I think you must do so: #header h1,

How to change default javadoc stylesheet?

送分小仙女□ 提交于 2019-12-08 17:18:43
问题 Is there a command line option to change the stylesheet file created by javadoc? I would like to use my own css file. The default blue one is boring. I tried a -stylesheet option, but it's not supported. 回答1: Yes, it's possible and actually quite straightforward. If you look for example at Mockito's javadoc: http://docs.mockito.googlecode.com/hg/org/mockito/Mockito.html (you can see that they have changed the default appereance just using this stylesheet) If you are using Maven, you can do

How to display 3 buttons on the same line in css

a 夏天 提交于 2019-12-08 16:19:47
问题 I want to display 3 buttons on the same line in html. I tried two options: This one: <div style="width:500px;"> <div style="float: left; width: 130px"><button type="submit" class="msgBtn" onClick="return false;" >Save</button></div> <div style ="float: none; width: 130px"><button type="submit" class="msgBtn2" onClick="return false;">Publish</button></div> <div style ="float: right; width: 130px"><button class="msgBtnBack">Back</button></div> </div> And this one: <p style="float: left; width:

CSS divs width 50% not working in IE

大兔子大兔子 提交于 2019-12-08 10:08:30
问题 I'm unable to get this working in IE, the second child doesn't remain in the same line. HTML: <div class="outer"> <div class="inner">left</div> <div class="inner">right</div> </div> CSS: .outer { width: 100%; } .inner { float: left; width: 50%; } 回答1: Change it to width: 49.9% . Well documented bug in IE. 回答2: Change your width's to 49% (or one to 50% and the other to 49%). 回答3: if you have a set width in px, 50% works correctly. CSS: .outer{ width: 900px; } .inner{ width: 50% } 来源: https:/

Animated Gif static in QStyleSheet

ぃ、小莉子 提交于 2019-12-08 07:21:05
问题 I'm wanting to customize the look of a QProgressBar with a stylesheet. I'd like to give it that animated, 'indeterminate' look. So I made an animated GIF to stick in the background of the QProgressBar::chunk . It shows up fine, but the image is static, with no animation. Any suggestions or workarounds? I'm running PyQt 4.9.4 on OS X 10.8. 回答1: So, this is a slightly more complex problem that you're facing. The QProgressBar relies on information from a loop or some determined amount to

How do I create page numbers in XSLT?

女生的网名这么多〃 提交于 2019-12-08 05:44:35
问题 Ive created a c# application which gets an xml file and a xslt file and creates an rtf document. This rtf document is to have a header a footer and page numbers but I can't figure out how to do this in xslt. Anyone have any advice? 回答1: If you specifically need something to be used in XSL, then you can have a block in the footer region (xsl-region-after) and within that block you can have this snippet. <fo:block text-align="right"><fo:page-number format="1"/><fo:page-number-citation format="1

Remove extra spaces from CSS inline element

好久不见. 提交于 2019-12-08 05:20:30
问题 I have a horizontal list, I want to be able to click on each of the list items without the following spaces. HTML: <ul id="server-header-list"> <li>item1: </li> <li>item1 value</li> <li>testing list item2: </li> <li>value of item2</li> </ul> CSS: #server-header-list li { display: inline; list-style-type: none; padding-right: 7px; white-space: nowrap; } Currently the output looks like this: item1: item1 value testing list item2: value of item2 This is good. But when I try to click on e.g.

Ruby on Rails Application coult not include stylesheet nor js

被刻印的时光 ゝ 提交于 2019-12-08 04:50:50
问题 Im working at a windows 8.1 64bit computer and jetzt succeed in creating a scaffold when i found the next problem .... these are the commands i executed: rails new obs cd obs rails generate scaffold Customer name:string rake db:migrate rails s but i cant open the window because of this error: TypeError: Das Objekt unterstützt diese Eigenschaft oder Methode nicht. Rails.root: C:/Users/Adrian/Documents/Bumblebee Application Trace | Framework Trace | Full Trace app/views/layouts/application.html

JavaFx set external background image programmatically

旧巷老猫 提交于 2019-12-08 03:05:56
问题 I have problems setting a background image of an anchor pane dynamically. For developing purpose i put the external resources in the dist folder of the project, so the files are availiable. Code for the AnchorPane: AnchorPane root = new AnchorPane(); // this works fine, styles inside the css are used in components on the root pane root.getStylesheets().add("file:/D:/ProjectFolder/global.css"); What i can't figure out is how to set the path for a background image. Reading through the CSS and

How to change app wide css in Angular 2?

你离开我真会死。 提交于 2019-12-07 23:43:17
问题 In my application I have different CSS file like fire.css, lake.css each giving different look to complete application. Currently, I implemented with only 1 file main.css and added this file to index.html <link rel="stylesheet" href="resources/styles/main.css"> <link rel="stylesheet" href="resources/styles/themes.css"> <link rel="stylesheet" href="resources/styles/common.css"> <link rel="stylesheet" href="resources/styles/plugins.css"> Now I wanted to change this dynamically as user select