xhtml

image in div wont show

て烟熏妆下的殇ゞ 提交于 2019-12-08 06:05:39
问题 Why wont it show the whole original picture? <div class="test"></div> .test { background: url("http://i27.tinypic.com/28ktoh.jpg") no-repeat; } Problem is that is doesnt show anything, if you type something in the div it shows a little bit of the image. I want it to include the full picture. 回答1: Here is the working demo You need to specify the height .test { background: url("http://i27.tinypic.com/28ktoh.jpg") no-repeat; overflow:auto; height:500px; } 回答2: Set the height of the div . The div

Chrome Extension: Opening Jquery Ui Dialog

喜你入骨 提交于 2019-12-08 05:53:43
问题 I'm very new to chrome extension development.. I got basic idea from google's tutorial and some help from this question here is what i have done so far background.html <html> <head> <script> chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.executeScript(null, {file:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-lightness/jquery-ui.css", runAt:"document_start"}, function() { alert('Added css'); }); chrome.tabs.executeScript(null, {file:"http://ajax

Extract data from tesseract hocr xhtml file

佐手、 提交于 2019-12-08 05:22:36
问题 I'm trying to use Python to extract data from Tesseract's hocr output file. We're limited to tesseact version 3.04, so no image_to_data function or tsv output is available. I have been able to do it with beautifulsoup and in R, but that's neither are available in the environment in which it needs to be deployed. I am just trying to extract the word and confidence "x_wconf." An example output file is below, for which I'd be happy to just return lists of [90, 87, 89, 89] and ['the', '(quick)',

Is the rel attribute usage compatible with all browsers and tags

孤者浪人 提交于 2019-12-08 04:54:58
问题 Just to be sure it can be safely used with JQuery scripting. 回答1: It's part of the HTML 4.01 Specification and should only be used as an attribute of the a and link tag (see the spec). Within a and link tags, it's well supported. 回答2: According to the HTML 4.01 specification, rel is only valid on a and link elements. As browsers don't validate documents you can get away with using it on any element you like, but it won't be valid, and it will be semantically meaningless. 回答3: You'd really

IE9 input/button element border color issue

大兔子大兔子 提交于 2019-12-08 04:50:38
问题 In the site I am currently building I am having trouble getting my border colors right for <input> and <button> elements. I would like to have the top, left, and right borders to be the same color and then have the bottom border a different color. I can get the styling to work for any other element to work except for those two, and this issue only exist in IE9. Any help or explanation would be greatly appreciated. Example of my problem: http://jsfiddle.net/NyG3x/24/ 回答1: Try setting to

<p:commandButton> with icon image not showing

我们两清 提交于 2019-12-08 04:46:33
问题 I have been struggling this for a while. I am using primefaces 3.5. I have a command button with icon attribute. But the image seems not showing. I am not sure if I put the image url correctly. I tried a few path. But still not working. In firebug I can see the icon. My image residing on /BelsizeWeb/WebContent/theme/primefaces-aristo/images CSS residing on /BelsizeWeb/WebContent/theme/primefaces-aristo theme.css .ui-icon-excel { background-image: url("images/toexcel.gif"); } xhtml <link type=

Making part of an image clickable

假装没事ソ 提交于 2019-12-08 04:05:38
问题 I have a background image applied this way HTML <div id="background"> <img src="stock.png" class="stretch" alt="image" /> </div> CSS #background { width: 100%; height: 100%; position: absolute; left: 0px; top: 0px; z-index: 0; } .stretch { width:100%; height:100%; } I want to have a part of an area of the image clickable, so that it will link me to the next page, any simple ways of doing this? 回答1: You could always make a link relative and z-index it to the proper position: <div id=

my javascript in external html is not loading

一笑奈何 提交于 2019-12-08 03:04:27
ok so in order here is my code /* index.html */ <!-- jQuery Scripts --> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="http://tdr.host22.com/scripts/li.js"></script> <link href="http://tdr.host22.com/scripts/tdr.css" rel="stylesheet" type="text/css"> <!-- Div Layout --> <div id="container"> <div id="dp">my DP here</div> <div id="hrefs"> <ul id="menu"> <li><a id="home">Home</a></li> <li><a id="about">About Me</a></li> <li><a id="shop">My Shop / Wishlist</a></li> <li><a id="friend">My Friends</a></li>

Why does ASP.Net add a “border” attribute to asp:Image

僤鯓⒐⒋嵵緔 提交于 2019-12-08 02:23:54
问题 So I have an asp.net image tag: <asp:Image runat="server" ImageUrl="~/Images/img.jpg" width="350px" height="250px" AlternateText="My Image" /> but it's outputting this: <img src="Images/img.jpg" height="250" width="350" border="0" /> ...the XHTML validator reckons that the "border" element shouldn't be there...but it's ASP.Net that's adding it. I'm sure this question has been asked many times before, but why does asp.net think it needs to add it, especially because it's invalid?? How can this

Tree navigation with XML and XSLT

て烟熏妆下的殇ゞ 提交于 2019-12-08 02:05:58
问题 I have this tree structured XML (toc.xml): <?xml version="1.0" encoding="utf-8"?> <toc> <item name="top" key="4294967296" subkey="1"> <item name="child1" key="4294967611" subkey=""> <item name="child2-1" key="4294961611" subkey=""> <item name="child3-1" key="4294967613" subkey=""/> <item name="child3-2" key="4294967612" subkey=""/> </item> <item name="child2-2" key="4294962611" subkey=""> <item name="d" key="4294974806" subkey=""/> </item> <item name="child2-3" key="4294963611" subkey="">