Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 编辑锚定标记的内容_Css_Anchor_Edit - Fatal编程技术网

Css 编辑锚定标记的内容

Css 编辑锚定标记的内容,css,anchor,edit,Css,Anchor,Edit,我一直在试图编辑锚标签的内容,但我不知道我哪里出错了。这是我需要编辑的代码 <div class="entry-content" itemprop="description"> <a class="button color-simple" href="http://techaccessok.org/person/std-speaker-2/" rel="bookmark">Nice to meet you!</a> </div> 谁能给我指出正确

我一直在试图编辑锚标签的内容,但我不知道我哪里出错了。这是我需要编辑的代码

<div class="entry-content" itemprop="description">
<a class="button color-simple" href="http://techaccessok.org/person/std-speaker-2/" rel="bookmark">Nice to meet you!</a>
</div>

谁能给我指出正确的方向吗

我能够通过使用和调整
边距
填充
z-index

这是纯粹的CSS,但充其量也很粗糙。

这将需要进一步调整,以配合您当前的内容很好

工作示例:

。条目内容a{
位置:相对位置;
填充:2px 0;/*需要修改*/
颜色:透明;
z指数:2;
}
.条目内容a:之后{
内容:“我的演讲”;
显示:块;
填充:0;
页边距顶部:-15px;/*使用与字体相同的大小*/
颜色:红色;
}
.输入内容a:悬停:在{
颜色:蓝色;
文字装饰:下划线;
}


您只能通过CSS添加内容,不能更改内容。至少不是这样<代码>内容仅适用于
:before
:after
伪元素,那么如何使用JavaScriptJavascript将内容从“很高兴见到你”更改为“你的演示文稿”?CSS实际上应该只用于更改文档的样式,而不是内容
.entry-content > a {
content : "My Presentation";
}