草庐IT

Substring-after

全部标签

html - CSS 伪类 :focus after button click

我正在为button使用一些基本的CSS动画。问题是:focus伪类甚至在我们按下键盘上的Tab键时也能正常工作。所以我希望:focus应该只在我点击按钮时才有效,即只有在激活时才有效。代码如下:button{background:#c33;width:150px;height:30px;border:0;color:#fff;}button:after{content:'RENTME';display:block;}button:active,button:focus{background:green;}button:active:after,button:focus:after{d

html - page-break-after 在 Chrome 中不起作用

打印期间,我在GoogleChrome中遇到page-break-after问题。好像不行。我试过Firefox,那里没问题。我的代码是:Page1Page2有什么技巧可以在Chrome中完成吗? 最佳答案 这是一个hack,但Chrome不能很好地支持分页符。所以尝试改用它:Page1Page2并将其添加到您的CSS中:html,body,.main,.tabs,.tabbed-content{float:none;}.break-after{display:block;page-break-after:always;positi

html - 是否有可能有一个 :after pseudo element on a button?

这个问题在这里已经有了答案:Whydothe:beforeand:afterpseudo-elementsrequirea'content'property?(5个答案)关闭6年前。我有一个按钮,在:hover上我想显示一个after元素。但是我看不到。是否可以在按钮上添加:after元素?.button{cursor:pointer;height:30px;}.button-primary{border:none;}.button-primary:hover:after{display:block;position:relative;top:3px;right:3px;width:1

html - 在 css 伪 :after content 中添加谷歌 Material 设计图标

我只是想添加一些谷歌Material设计icons到悬停链接的内容:a:hover::after{content:"link"}但是不行,请看我的fiddle. 最佳答案 将您的CSS更改为:a:hover::after{font-family:'MaterialIcons';content:"link";-webkit-font-feature-settings:'liga';}所以你可以改变内容:“[whatevericonhere]”;FIDDLE此外,fiddle没有正确加载图标字体,所以我将链接放在html中。

javascript - 如何选择:after element using jquery

下面是我的代码。我已经尝试过。当这个弹出窗口出现时,我想使用这个关闭按钮来关闭整个弹出框。CSS代码.bigdiv{display:none;background-color:#efefef;box-shadow:10px10px10px100000pxrgba(0,0,0,0.4);border:2pxsolid#efefef;width:400px;height:300px;position:fixed;z-index:500;top:25%;left:25%;margin:0auto;padding:20px;}.bigdiv:after{cursor:pointer;conte

html - 支持 CSS :before and :after pseudo elements 的 html 元素列表

我知道:before,和:after空元素不支持伪元素,但是这些呢:最好有一个列表!谢谢大家! 最佳答案 我将每个HTML元素放在一起。有些甚至在使用它们的地方都不合法……但它似乎仍然有效。如果它用绿色字母表示“有效”,则表示支持该元素。*:not(br):after{content:'itworks';font-weight:bold;padding:5px;color:green;}Name:aName:abbrName:addressName:areaName:articleName:asideName:audioName:b

html - 什么是 CSS 中的 &::before, &::after?

关闭。这个问题需要更多focused.它目前不接受答案。想改进这个问题吗?更新问题,使其只关注一个问题editingthispost.关闭8年前。Improvethisquestion我想创建一个垂直时间轴,然后看到了这个页面。http://cssdeck.com/labs/oz2nu681我复制了代码,但有些事情我遇到了麻烦。&::之后&::之前.radio:选中;&+.相对;我试图将其更改为该样式表代码,但卡在了这里。此外,CSS代码与传统CSS文件包含的内容不同。这个代码是什么,我该如何使用它?

javascript - 为什么 jQuery .after() 不链接新元素?

我很好奇为什么jQuery的.after()不链接或“为您提供”您使用它创建的新元素。在我看来应该如此,但我不是专家,希望有人能阐明为什么这是个坏主意。下面是一个例子,看看我想从.after()中得到什么:这是一些标记:HelloHello这就是我想要的,但这会将“Hello”替换为“World!”:$('#hello1').after('').text('World!');这样就可以了,但确实很丑:$('#hello2').after('');var$newParagraph=$('#content2p').last();$newParagraph.text('World');这更好

html - 如何定位:before & :after pseudo-elements on top of each other?

将一个伪元素直接放置在另一个伪元素之上的最佳方式是什么?假设我想在此处的标签旁边显示一个奇特的“复选框”:label:before{content:"\00a0";color:#FFF;height:6px;width:6px;display:inline-block;}label:after{content:"\00a0";height:18px;width:18px;display:inline-block;background:#ebd196;background-image:linear-gradient(top,#ebd1964%,#e2b65d5%,#ab8844100%)

javascript - jQuery remove() 或 after() 导致空格被删除

我有以下html:Thisissomerandomtextinaparagraphwithablueword.Thisissomerandomtextinaparagraphwithablueword.Thisissomerandomtextinaparagraphwithablueword.我的CSS如下:.blue{color:blue;}.popup{background-color:lightblue;}最后是我的JS:varpopup=false;$(".blue").click(function(){if(!popup){$(this).after("Thisissomep