All geek questions in one place

    Why are href tag attributes printed on the screen?

    Possible duplicate:
    Hyperlinks showing URLs with a plan

    DOM:

    <div id="menu"> <ul> <a href="#">Home</a> <a href="/contacts">Contact List</a> <a href="/album">Event Album</a> </ul> </div> 

    enter image description here

    Looks weird, why are href printed?

      /* Menu */ #menu{ width:400px; height:50px; margin:10px auto; border:solid 1px #313131; background:#ffffff; overflow:hidden; } /*------ MENU ------*/ #menu ul{ list-style:none; } #menu ul a{ text-decoration:none; } #menu ul a:hover{ color:#7878ff; } 
    0
    css blueprint-css
    user469652 Jan 29 '11 at 1:30
    source share
    2 answers

    It looks like you can capture print.css for the screen. Make sure your media types are installed correctly.

    +2
    Zac Jan 29 '11 at 2:12
    source share

    Make sure the media attribute of your link element is set to print

     <link rel="stylesheet" href="App_Themes/Default/print.css" type="text/css" media="print" /> 

    The CSS that is responsible for this looks something like this:

     a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} 
    +3
    LorenzoValentijn Apr 7 '11 at 7:29
    source share

    Source: https://habr.com/ru/post/1491098/

    More articles:

    • How to search all directories in all drives for .txt files? - c #
    • How to suspend cmd before closing it? - c #
    • How to get the path from different files in different directories? - string
    • JavaScript callback style - transition to promises - javascript
    • How to hide the href attribute of a tag via css when using window.print - javascript
    • https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1491099/saving-credentials-token-in-a-cookie&usg=ALkJrhjkx8FlCCA_dEFSnNc1gdPlRvP_UQ
    • Removing duplicate subtrees from CONNECT-BY query in oracle - sql
    • Printing in IE8 Has embedded content @href - internet-explorer-8
    • Using decimal numbers with some precision as output using Dapper - c #
    • Terminology, for example, codata in Clojure - clojure

    All Articles

    Geek Questions | 2019