xhtml

DIV with overflow:auto and a 100% wide table

心已入冬 提交于 2019-12-31 08:15:15
问题 I hope someone might be able to help me here. I've tried to simplify my example as best I can. I have an absolutely positioned DIV, which for this example I've made fill the browser window. This div has the overflow:auto attribute to provide scroll bars when the content is too big for the DIV to display. Within the DIV I have a table to present some data, and it's width is 100%. When the content becomes too large vertically, I expect the vertical scroll bar to appear and the table to shrink

DIV with overflow:auto and a 100% wide table

一世执手 提交于 2019-12-31 08:15:14
问题 I hope someone might be able to help me here. I've tried to simplify my example as best I can. I have an absolutely positioned DIV, which for this example I've made fill the browser window. This div has the overflow:auto attribute to provide scroll bars when the content is too big for the DIV to display. Within the DIV I have a table to present some data, and it's width is 100%. When the content becomes too large vertically, I expect the vertical scroll bar to appear and the table to shrink

Trouble with jquery lavalamp

北城余情 提交于 2019-12-31 05:45:30
问题 For some reason my background color shoots back to the leftmost link no matter what link I click on. Anyone know how to get it to stay on the clicked link? css #lamp { float:left; margin:25px 0px 0px 90px; clear: both; } .lavaLamp { position: relative; height: 29px; width: 400px; background: #000000 no-repeat top; background-image:url('http://wildfire-restaurant.com/images/lampback.png'); padding: 15px; margin: 10px 0; overflow: hidden; float:left; } /* Force the list to flow horizontally */

Ignore mouse interaction on overlay image

可紊 提交于 2019-12-31 05:17:11
问题 I have a menu bar with hover effects, and now I want to place a transparent image with a circle and a "handdrawn" text over one of the menu items. If I use absolute positioning to place the overlay image above the menu item, the user will not be able to click the button and the hover effect will not work. Is there any way to somehow disable mouse interaction with this overlay image so that the menu will keep on working just as before even though it's beneath an image? Edit: Because the menu

How to update panel from datatable [duplicate]

巧了我就是萌 提交于 2019-12-31 04:24:49
问题 This question already has answers here : How to find out client ID of component for ajax update/render? Cannot find component with expression “foo” referenced from “bar” (5 answers) Closed 3 years ago . Commandbutton with id("myButtonId2") works fine. I mean it updates "myOutputPanel" but commandbutton which is inside datatable doesn't update outputPanel. Is there a specific update style for datatables? <h:form id="myForm" prependId="false"> <p:panel id="myPanel"> <p:dataTable id="myDatatable

Can we make Print button without JavaScript?

落爺英雄遲暮 提交于 2019-12-31 03:54:12
问题 Can we make Print button without JavaScript? to open browser print window. 回答1: HTML has no built-in "print" action for an anchor tag or input button (or anything else), so JavaScript is your way. You could also include instructions for your users on how to print using File->Print or the other various alternatives. 回答2: Althought as @Pablo says there is no print functionality that can be used without javascript, here is something that will make it a little nicer just in case there was a user

Ambiguous rule match in replacing style= attributes in XHTML via XSLT

╄→гoц情女王★ 提交于 2019-12-31 02:21:47
问题 This is a followup to this question. I have several <span> tags in a document with several semicolon separated style attributes. Right now I have 3 specific style attributes I'm looking for to translate into tags. All works well in the example above as long as the style attribute only contains one of the three style attributes. If a span has more, I get an ambiguous rule match. The three style attributes I'm looking for are font-style:italic , font-weight:600 , and text-decoration:underline

Ambiguous rule match in replacing style= attributes in XHTML via XSLT

风流意气都作罢 提交于 2019-12-31 02:21:26
问题 This is a followup to this question. I have several <span> tags in a document with several semicolon separated style attributes. Right now I have 3 specific style attributes I'm looking for to translate into tags. All works well in the example above as long as the style attribute only contains one of the three style attributes. If a span has more, I get an ambiguous rule match. The three style attributes I'm looking for are font-style:italic , font-weight:600 , and text-decoration:underline

What's the best way to remove <br> tags from the end of a string?

大兔子大兔子 提交于 2019-12-30 18:48:19
问题 The .NET web system I'm working on allows the end user to input HTML formatted text in some situations. In some of those places, we want to leave all the tags, but strip off any trailing break tags (but leave any breaks inside the body of the text.) What's the best way to do this? (I can think of ways to do this, but I'm sure they're not the best.) 回答1: As @Mitch said, // using System.Text.RegularExpressions; /// <summary> /// Regular expression built for C# on: Thu, Sep 25, 2008, 02:01:36 PM

Displaying a message from managed bean with primefaces confirmation dialog component

有些话、适合烂在心里 提交于 2019-12-30 11:19:09
问题 in my page , i'm trying to display a confirmation dialog after clicking a button .In the confirmation dialog i used the attribute message to display it , this message is taken value after clicking the button . So i did it like that : <p:commandButton value="Delete" update="testPlanetree" id="deleteBtn" disabled="#{projectTestManagementMB.disable}" oncomplete="deleteConfirmation.show()" action="#{projectTestManagementMB.testFn}"/> <p:confirmDialog id="confirmDialog" message="#