xhtml

Simulating position: fixed in IE6 with a div of 100% height?

旧巷老猫 提交于 2019-12-06 16:49:09
问题 I have a sidebar on my webpage that is supposed to span 100% of the page (vertically). It is then supposed to stay there, so when the rest of the content scrolls it does not. To do this, I used: body { height: 100%; } #sidebar { height: 100%; width: 120px; position: fixed; top: 0; left: 0; } This works great in all modern browsers! Unfortunately, I have to code for IE6, which does not support position: fixed. Do you have any idea how I would do this? 回答1: This is the fix » Me? I'd just as

Is the rel attribute usage compatible with all browsers and tags

六月ゝ 毕业季﹏ 提交于 2019-12-06 16:07:13
Just to be sure it can be safely used with JQuery scripting. 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 . 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. You'd really need to expand on what you mean by "compatible with all browsers". All browsers will be able to render a document

How to extract source from Google search result “20-pack” entry?

谁说胖子不能爱 提交于 2019-12-06 15:36:52
The search results page for a local Google search typically looks like this , containing 20 results. In order to get the full contact details for any given result on the left-hand-side, the result needs to be clicked, bringing up (after a lengthy wait) an overlay (not sure of the technical term) over the Google Maps pane (on Firefox, does something different on other web browsers): I am extracting the business name. address, phone and website with Python and WebDriver thus: address = driver.find_element_by_xpath("//div[@id='akp_uid_0']/div/div/ol/li/div/div/div/ol/table/tbody/tr[2]/td/li/div

CSS text replace with image, need hyperlink

半腔热情 提交于 2019-12-06 14:08:18
问题 I am using the text-indent technique to replace my <h1/> tag with my website's image as so: <h1 title="Homepage">My logo</h1> CSS: #header h1 { float: left; background: transparent url('../images/logo.png'); width: 214px; height: 64px; text-indent: -9999px; } The only problem is that I want to still have the new image act as a hyperlink. I tried doing: <h1 title="Homepage"><a href="#">My logo</a></h1> But since it is being indented, the link is too. I wanted to know if anyone had any

How to keep the text vertically aligned in any condition?

送分小仙女□ 提交于 2019-12-06 13:39:05
问题 For example in the below image I want keep the text always vertically aligned in all condition. even if text is in one, two or three lines. means the text should be vertically centered always. I don't want to add extra span <div> <img src=abc.jpg"> Hello Stackoverflow. Thank you for help me </div> I want to achieve with this html. Edit And I don't want to give fix width and height to any element 回答1: Chris Coyier wrote an excellent tutorial on just this: http://css-tricks.com/vertically

Editing xhtml jsp files in Eclipse

烈酒焚心 提交于 2019-12-06 12:10:50
问题 I've got some jsp files that are supposed to output xhtml. They seem to have the correct doctype etc but Eclipse is not parsing the xhtml attributes. For instance for the root element: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> I get the warning: "Undefined attribute name (xmlns)." What's the best way to solve this in Eclipse? edit: The doctype for this particular file was wrong apparently, it was set to: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"

Javascript that automatically sets font-size on element so that text doesn't overflow? (autofit)

戏子无情 提交于 2019-12-06 12:07:22
问题 You know what I mean? Like let's say we have: <div style="width:100px;font-size:10px">Some Text</div> But then we could also possibly have a much longer text string in that div, in that case I would want that div to have font-size:7px or whatever, so that the whole string fits without overflowing. I'm sure there's already something like this written, I wouldn't want to reinvent this. Preferably a jQuery plugin? Any suggestions would be appreciated! Thanks 回答1: Based on an answer proposed in

JSF (and PrimeFaces) How to pass parameter to a method in ManagedBean

随声附和 提交于 2019-12-06 11:36:05
问题 I have an Employee object I am showing in inputtext. For example, the firstname of the employee is shown in an inputtext. When the value of this firstname changes it calls a method. Before this is done I want to call a method which saves the ID of the employee in the managedbean so I know which employee needs to be changed. How do I do this, I got this so far: <h:outputText value="First name:"/> <p:inplace id="firstname" editor="true"> <p:ajax event="save" onsuccess="#{employeeController

Issue parsing a xhtml page using Python

最后都变了- 提交于 2019-12-06 11:29:29
问题 Hello i am trying to parse a page in xhtml with python but i receive this error: **xml.parsers.expat.ExpatError: unbound prefix: line 6, column 0** [Fri Mar 25 09:58:21 2011] [error] [client 127.0.0.1] mod_wsgi (pid=9156): Exception occurred processing WSGI script '/home/hidura/webapps/karinapp/Suite/Gate.py'. [Fri Mar 25 09:58:21 2011] [error] [client 127.0.0.1] Traceback (most recent call last): [Fri Mar 25 09:58:21 2011] [error] [client 127.0.0.1] File "/home/hidura/webapps/karinapp/Suite

pandoc command line parameters for resolving internal links

只谈情不闲聊 提交于 2019-12-06 11:05:40
My problem is similar to this post , but not identical. I somehow can't figure out the correct pandoc command line parameters for maintaining/resolving cross-document links when using a couple of interlinked HTML files as the input. Let's say I have two files, chapter1.xhtml and chapter2.xhtml located in the /home/user/Documents folder with the following contents: <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <h3>Chapter 1<