xhtml

Do browsers support an HTML document with markup that uses namespaces (see code)?

时间秒杀一切 提交于 2019-12-12 04:52:58
问题 It seems like it's possible to use namespaces in an HTML document. Although, I've never seen it done. If I used namespaces in my document would browsers render it correctly? Here is your HTML: <html> <head> </head> <body> <input type="button"/> </body> </html> Here is your HTML on namespaces: <h:html xmlns:h="http://www.w3.org/1999/xhtml"> <h:head> </h:head> <h:body> <h:input type="button"/> <svg:svg xmlns="http://www.w3.org/2000/svg"/> </h:body> </h:html> Any questions? FYI SVG uses

Navigation bar messing with other elments in CSS

99封情书 提交于 2019-12-12 04:38:30
问题 Hi there i had a nav bar which was working perfectly. Then i added a lightbox effect. Both work perfectly however in my css they are messing up. When i added some css to lightbox effects to the div it messes up my navigation bar. I think its something to do with the a tag. My code is below Html: <div id="nav"> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">Regsiter</a></li> <li><a href="#contact">Rules</a></li> <li><a href="#about">Photo's</a></li> <li><a href="#about">Contact Us<

Min-Height 100%?

試著忘記壹切 提交于 2019-12-12 04:24:12
问题 I want to be able to have a container element which contains the content to repeat and expand as the content goes on, but the container per se is in between two elements in which give heed of the container element "stopping" at some point. You may view the design at: http://www.noxinnovations.com/portfolio/charidimos/ What I want to do is have the container element which contains the content to be set at 100%. So no matter what it will always be correct in size without a set size. Any ideas?

CSS Background Image

风流意气都作罢 提交于 2019-12-12 04:15:33
问题 I'm working on a project for an Artist, the project has been passed to me as the design has been completed. I have receieved the design in a .psd file and the size is huuuuuuuge 2504px x 1781px to be exact! As there are lots of patterns and gradients on it, I'm a little unsure as to how to set the image up. I have put the image up online, I think the first pressing thing is to resize it to suit more modern screen sizes. The image is attached, Any help or suggestions on how to manage the image

Counting clicks on anchor tag

耗尽温柔 提交于 2019-12-12 04:06:31
问题 I have a <a href="" > </a> on a page on my webiste. I wanted to count the number of clicks on this link by the user and display it. How can this be done? 回答1: best way to represent a counter for each a tag on your document and store the data with jquery.data, increasing the counter on each click, example shown in here : http://jsfiddle.net/ShlomiKomemi/dvdPd/13/ 回答2: href can have a javascript function call that can do the count and redirect the user to the original page. Or you can point the

Form redirection problem [duplicate]

喜夏-厌秋 提交于 2019-12-12 02:39:47
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to stop form from sending email more times after initial success. First of all, i have structured my website using directories. So basically every page is a directory and in that directory, i have a file called index.php. I have four contact forms on my site, and at the moment, the seem to all work using the hnadler.php file. The handler file validates the data, checks the form-id posted and based on that,

How to automatically propagate the XMLNS attribute from on XSL template to another

偶尔善良 提交于 2019-12-12 02:33:52
问题 I'm looking for a way to have the XMLNS attribute propagate automatically from one XSL Template to another so I don't have to redeclare it each time. Here's my situation. I'm trying to transform an XML file into an XHTML file using a XSLT file. My XML file is: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" encoding="UTF-8" href="car.xslt" version="1.0"?> <vehicle> <car> <make>Honda</make> <color>blue</color> </car> <car> <make>Saab</make> <color>red</color> </car> <

Gather info from xhtml in java: parser + visitor?

余生颓废 提交于 2019-12-12 02:28:32
问题 I have to write a piece of code that loads a remote web page, search for the links, visit those pages and gather some info from certain tags... How would you do this? Is the visitor pattern of any help here? If so, how could I use it? Thanks 回答1: Some comments/suggestions Not sure if the visitor patter is a good fit over here. A typical scenario for the visitor pattern is when the operation algorithm differs depending on the object on which the algorithm is applied. The crude way to solve

Running open layer with JSF and .xhtml file

主宰稳场 提交于 2019-12-12 01:44:52
问题 I made a jsf project and have the following example from http://docs.openlayers.org/library/introduction.html but as a xhtml file this wouldn't run and as a html file it would run. How to run it with jsf and .xhtml. It runs with html though. <?xml version="1.0" encoding="UTF-8"?> <!-- To change this template, choose Tools | Templates and open the template in the editor. --> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <script src=

site zoom problem: not all of the components scaling as they should

雨燕双飞 提交于 2019-12-12 01:39:22
问题 I recently develop a site and I noticed that when I use the scroll zoom(ctrl+mouse wheel) on other sites it works great but on mine it has a strange behavior with not all of the components scaling as they should. On the css file I used only percentages in order to keep resolutions/size problem to minimum...but I don't know if that has anything to do with the present problem. 回答1: you have the width 100% on the css of the classes (for example images). This is your problem. Use width:auto; and